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
06710abd
"...svn:/svn.code.sf.net/p/irrlicht/code/trunk@4950" did not exist on "38d837348c9bd4c7dd56d3ae1da33b3041abdbee"
Commit
06710abd
authored
Jul 15, 2019
by
Francesco Poldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated names
parent
5e4005e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
twint/output.py
twint/output.py
+8
-8
No files found.
twint/output.py
View file @
06710abd
...
...
@@ -7,9 +7,9 @@ from .storage import db, elasticsearch, write, panda
import
logging
as
logme
follows_
objec
t
=
[]
tweets_
objec
t
=
[]
users_
objec
t
=
[]
follows_
lis
t
=
[]
tweets_
lis
t
=
[]
users_
lis
t
=
[]
author_list
=
{
''
}
author_list
.
pop
()
...
...
@@ -120,7 +120,7 @@ async def checkData(tweet, config, conn):
if
hasattr
(
config
.
Store_object_tweets_list
,
'append'
):
config
.
Store_object_tweets_list
.
append
(
tweet
)
else
:
tweets_
objec
t
.
append
(
tweet
)
tweets_
lis
t
.
append
(
tweet
)
if
config
.
Elasticsearch
:
logme
.
debug
(
__name__
+
':checkData:Elasticsearch'
)
...
...
@@ -151,7 +151,7 @@ async def Tweets(tweets, config, conn, url=''):
async
def
Users
(
u
,
config
,
conn
):
logme
.
debug
(
__name__
+
':User'
)
global
users_
objec
t
global
users_
lis
t
user
=
User
(
u
)
output
=
format
.
User
(
config
.
Format
,
user
)
...
...
@@ -172,14 +172,14 @@ async def Users(u, config, conn):
if
config
.
Store_object
:
logme
.
debug
(
__name__
+
':User:Store_object'
)
users_
objec
t
.
append
(
user
)
# twint.user.user
users_
lis
t
.
append
(
user
)
# twint.user.user
_output
(
user
,
output
,
config
)
async
def
Username
(
username
,
config
,
conn
):
logme
.
debug
(
__name__
+
':Username'
)
global
_follows_object
global
follows_
objec
t
global
follows_
lis
t
follow_var
=
config
.
Following
*
"following"
+
config
.
Followers
*
"followers"
if
config
.
Database
:
...
...
@@ -191,7 +191,7 @@ async def Username(username, config, conn):
elasticsearch
.
Follow
(
username
,
config
)
if
config
.
Store_object
:
follows_
objec
t
.
append
(
username
)
follows_
lis
t
.
append
(
username
)
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