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
b36f0165
Commit
b36f0165
authored
Apr 10, 2018
by
Cody Zacharias
Committed by
GitHub
Apr 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewritten; Added ability to scrape follows & more
parent
bea3f0bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
twint.py
twint.py
+16
-4
No files found.
twint.py
View file @
b36f0165
...
...
@@ -534,16 +534,28 @@ async def getFavorites(init):
return
tweets
,
init
,
count
async
def
outFollow
(
f
):
'''
Will include more data on the user
upon request.
'''
user
=
f
.
find
(
"a"
)[
"name"
]
output
=
user
if
arg
.
o
!=
None
:
print
(
output
,
file
=
open
(
arg
.
o
,
"a"
,
encoding
=
"utf-8"
))
return
output
async
def
getFollow
(
init
):
'''
For now, just printing the Twitter username
of a follower/user followed. Will include more
data on the user upon request.
of a follower/user followed.
'''
follow
,
init
=
await
getfeed
(
init
)
for
f
in
follow
:
user
=
f
.
find
(
"a"
)[
"name"
]
print
(
user
)
print
(
await
outFollow
(
f
))
return
follow
,
init
...
...
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