Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
twitter-api-example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dsbd
twitter-api-example
Commits
9ceba722
Commit
9ceba722
authored
6 years ago
by
Alessandro Elias
Browse files
Options
Downloads
Patches
Plain Diff
Fix dates
parent
ab0c1cc6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
twitter-api-example.py
+21
-18
21 additions, 18 deletions
twitter-api-example.py
with
21 additions
and
18 deletions
twitter-api-example.py
100644 → 100755
+
21
−
18
View file @
9ceba722
#!/usr/bin/env python3
import
sys
import
jsonpickle
import
os
...
...
@@ -23,8 +25,8 @@ searchQuery = '((cota OR cotas OR universidade OR universidades) AND (racial OR
# sugiro tirar o sincedate; assim fica menos feito o código. Eu também lembro de dar uns paus; e de qq forma
# a API só volta cerca de uma semana no passado mesmo
sincedate
=
"
201
8-11-20
"
untildate
=
"
201
8-11-21
"
sincedate
=
"
201
9-05-15
"
untildate
=
"
201
9-05-16
"
maxTweets
=
10000000
# Testar colocar esse limite. Só para eles não destruirem a cahve
...
...
@@ -41,7 +43,8 @@ sinceId = None
# If results only below a specific ID are, set max_id to that ID.
# else default to no upper limit, start from the most recent tweet matching the search query.
max_id
=
-
1L
# Python3 has 9223372036854775807 as max number
max_id
=
sys
.
maxsize
#max_id = 1045463072670920704
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment