Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Twint
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Twint
Commits
e0e7705e
Commit
e0e7705e
authored
Mar 16, 2018
by
Cody Zacharias
Committed by
GitHub
Mar 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore ssl verify
parent
a54ec5ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tweep.py
tweep.py
+2
-2
No files found.
tweep.py
View file @
e0e7705e
...
@@ -94,7 +94,7 @@ async def getFeed(init):
...
@@ -94,7 +94,7 @@ async def getFeed(init):
Returns html for Tweets and position id.
Returns html for Tweets and position id.
'''
'''
async
with
aiohttp
.
ClientSession
()
as
session
:
async
with
aiohttp
.
ClientSession
(
connector
=
aiohttp
.
TCPConnector
(
verify_ssl
=
False
)
)
as
session
:
response
=
await
fetch
(
session
,
await
getUrl
(
init
))
response
=
await
fetch
(
session
,
await
getUrl
(
init
))
feed
=
[]
feed
=
[]
try
:
try
:
...
@@ -237,7 +237,7 @@ async def getUsername():
...
@@ -237,7 +237,7 @@ async def getUsername():
This function uses a Twitter ID search to resolve a Twitter User
This function uses a Twitter ID search to resolve a Twitter User
ID and return it's corresponding username.
ID and return it's corresponding username.
'''
'''
async
with
aiohttp
.
ClientSession
()
as
session
:
async
with
aiohttp
.
ClientSession
(
connector
=
aiohttp
.
TCPConnector
(
verify_ssl
=
False
)
)
as
session
:
r
=
await
fetch
(
session
,
"https://twitter.com/intent/user?user_id={0.userid}"
.
format
(
arg
))
r
=
await
fetch
(
session
,
"https://twitter.com/intent/user?user_id={0.userid}"
.
format
(
arg
))
soup
=
BeautifulSoup
(
r
,
"html.parser"
)
soup
=
BeautifulSoup
(
r
,
"html.parser"
)
return
soup
.
find
(
"a"
,
"fn url alternate-context"
)[
"href"
]
.
replace
(
"/"
,
""
)
return
soup
.
find
(
"a"
,
"fn url alternate-context"
)[
"href"
]
.
replace
(
"/"
,
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment