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
f311a949
Commit
f311a949
authored
Mar 12, 2020
by
Lee Lunn
Committed by
GitHub
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds option to pass follower / follower and user lists (#685)
parent
8cec66a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
twint/config.py
twint/config.py
+3
-1
twint/output.py
twint/output.py
+17
-3
No files found.
twint/config.py
View file @
f311a949
...
...
@@ -37,6 +37,8 @@ class Config:
Profile_full
=
False
Store_object
=
False
Store_object_tweets_list
=
None
Store_object_users_list
=
None
Store_object_follow_list
=
None
Pandas_type
=
None
Pandas
=
False
Index_tweets
=
"twinttweets"
...
...
twint/output.py
View file @
f311a949
...
...
@@ -175,6 +175,17 @@ async def Users(u, config, conn):
if
config
.
Store_object
:
logme
.
debug
(
__name__
+
':User:Store_object'
)
if
config
.
Followers
or
config
.
Following
:
if
hasattr
(
config
.
Store_object_follow_list
,
'append'
):
config
.
Store_object_follow_list
.
append
(
user
)
else
:
users_list
.
append
(
user
)
# twint.user.user
# also populate using the previous method to avoid breaking changes
if
hasattr
(
config
.
Store_object_users_list
,
'append'
):
config
.
Store_object_users_list
.
append
(
user
)
else
:
users_list
.
append
(
user
)
# twint.user.user
if
config
.
Pandas
:
...
...
@@ -198,7 +209,10 @@ async def Username(username, config, conn):
elasticsearch
.
Follow
(
username
,
config
)
if
config
.
Store_object
:
follows_list
.
append
(
username
)
if
hasattr
(
config
.
Store_object_follow_list
,
'append'
):
config
.
Store_object_follow_list
.
append
(
username
)
else
:
follows_list
.
append
(
username
)
# twint.user.user
if
config
.
Pandas
:
logme
.
debug
(
__name__
+
':Username:object+pandas'
)
...
...
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