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
4ba511bb
Commit
4ba511bb
authored
Nov 08, 2018
by
Francesco Poldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated args check, removed old args and defaults, updated elasticsearch
parent
2540fb48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Twint.py
Twint.py
+3
-3
twint/config.py
twint/config.py
+1
-1
twint/storage/elasticsearch.py
twint/storage/elasticsearch.py
+2
-2
No files found.
Twint.py
View file @
4ba511bb
...
...
@@ -29,14 +29,14 @@ def check(args):
if
args
.
userid
:
error
(
"Contradicting Args"
,
"--userid and -u cannot be used together."
)
else
:
if
args
.
search
is
None
:
error
(
"Error"
,
"Please use at least -u or -s."
)
if
args
.
output
is
None
:
if
args
.
csv
:
error
(
"Error"
,
"Please specify an output file (Example: -o file.csv)."
)
elif
args
.
json
:
error
(
"Error"
,
"Please specify an output file (Example: -o file.json)."
)
if
args
.
hostname
:
if
args
.
Database
is
None
or
args
.
DB_user
is
None
or
args
.
DB_pwd
is
None
:
error
(
"Error"
,
"Please specify database name, user and password"
)
def
loadUserList
(
ul
,
_type
):
""" Concatenate users
...
...
twint/config.py
View file @
4ba511bb
...
...
@@ -2,7 +2,7 @@ class Config:
Username
=
None
User_id
=
None
Search
=
None
Geo
=
None
Geo
=
""
Location
=
False
Near
=
None
Lang
=
None
...
...
twint/storage/elasticsearch.py
View file @
4ba511bb
...
...
@@ -242,9 +242,9 @@ def Tweet(Tweet, config):
"near"
:
config
.
Near
}
}
if
config
.
Near
:
if
config
.
Near
or
config
.
Geo
:
if
not
_is_near_def
:
_is_near_def
=
getLocation
(
config
.
Near
,
near
=
True
)
_is_near_def
=
getLocation
(
config
.
Near
+
config
.
Geo
,
near
=
True
)
if
_near
:
j_data
[
"_source"
]
.
update
({
"geo_near"
:
_near
})
if
Tweet
.
place
:
...
...
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