Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
9cf88c79
Commit
9cf88c79
authored
Apr 19, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mini server kept locally + remove cors accordingly (safergit status)
parent
e4d250f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
settings_explorerjs.js
settings_explorerjs.js
+1
-1
requirements.txt
twitterAPI2/requirements.txt
+1
-1
topPapers_flask_server.py
twitterAPI2/topPapers_flask_server.py
+3
-3
No files found.
settings_explorerjs.js
View file @
9cf88c79
...
...
@@ -21,7 +21,7 @@ var TW = {}
// // "data/example.json",
// // "data/Elisa__Omodei.gexf",
];
TW
.
APINAME
=
"http://1
27.0.0.1:5000
/twitter_search"
;
TW
.
APINAME
=
"http://1
34.158.75.71
/twitter_search"
;
TW
.
tagcloud_limit
=
50
;
TW
.
bridge
=
{};
TW
.
bridge
[
"forFilteredQuery"
]
=
"php/bridgeClientServer_filter.php"
;
...
...
twitterAPI2/requirements.txt
View file @
9cf88c79
python-twitter
flask-cors
#
flask-cors
twitterAPI2/topPapers_flask_server.py
View file @
9cf88c79
...
...
@@ -17,8 +17,8 @@ import twitter
from
flask.ext.cors
import
CORS
,
cross_origin
app
=
Flask
(
__name__
)
cors
=
CORS
(
app
)
app
.
config
[
'CORS_HEADERS'
]
=
'Content-Type'
#
cors = CORS(app)
#
app.config['CORS_HEADERS'] = 'Content-Type'
# ---- initialize twitter api with credentials ----
keys_file
=
open
(
"keys.json"
)
...
...
@@ -37,7 +37,7 @@ QCONTEXT = "(Fillon OR Macron OR JLM2017 OR Mélenchon OR #Marine2017 OR @MLP_of
@
app
.
route
(
'/twitter_search'
)
# @cross_origin(origin="twjs.org")
@
cross_origin
()
#
@cross_origin()
def
searcher
():
if
'query'
in
request
.
args
:
# prepare query
...
...
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