All Projects → romaintha → twitter

romaintha / twitter

Licence: MIT license
Use the twitter streaming API and store tweets, users, ... in a NEO4J database

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to twitter

gorm-neo4j
GORM for Neo4j
Stars: ✭ 16 (-38.46%)
Mutual labels:  neo4j
datatheque.com
a data science blog
Stars: ✭ 12 (-53.85%)
Mutual labels:  neo4j
family-tree
Family tree made with neo4j
Stars: ✭ 35 (+34.62%)
Mutual labels:  neo4j
sdk
Home of the JupiterOne SDK
Stars: ✭ 21 (-19.23%)
Mutual labels:  neo4j
pheno4j
Pheno4j: a graph based HPO to NGS database
Stars: ✭ 31 (+19.23%)
Mutual labels:  neo4j
spuf-314
a Web Application prototype for public transportation, serving a RESTful API to find Stations, Bus, Metro and Tramway's Lines, while also computing the best multimodal path between two stations or addresses
Stars: ✭ 22 (-15.38%)
Mutual labels:  neo4j
nlm
Memory for Knowledge Graph, using Neo4j. 知识图谱存储与查询。
Stars: ✭ 43 (+65.38%)
Mutual labels:  neo4j
aioneo4j
asyncio client for neo4j
Stars: ✭ 29 (+11.54%)
Mutual labels:  neo4j
gram-js
Gram in javascript.
Stars: ✭ 21 (-19.23%)
Mutual labels:  neo4j
d3js-neo4j-example
Some of D3.js v5 example pages visualize the result from Neo4j
Stars: ✭ 37 (+42.31%)
Mutual labels:  neo4j
neo4j-django-tutorial
Tutorial to set up a new Django project with Neo4j REST server
Stars: ✭ 73 (+180.77%)
Mutual labels:  neo4j
django-test-addons
Testing support for different database system like Mongo, Redis, Neo4j, Memcache, Django Rest Framework for django
Stars: ✭ 20 (-23.08%)
Mutual labels:  neo4j
nest-neo4j
A NestJS module for integrating with Neo4j
Stars: ✭ 54 (+107.69%)
Mutual labels:  neo4j
cytoscapeneo4j
Cytoscape plugin for neo4j
Stars: ✭ 18 (-30.77%)
Mutual labels:  neo4j
graphcountries
An easy to use GraphQL API to query country-related data for free and without restrictions
Stars: ✭ 61 (+134.62%)
Mutual labels:  neo4j
Public-Transport-SP-Graph-Database
Metropolitan Transport Network from São Paulo mapped in a NoSQL graph database.
Stars: ✭ 25 (-3.85%)
Mutual labels:  neo4j
bitnami-docker-neo4j
Bitnami Docker Image for Neo4j
Stars: ✭ 25 (-3.85%)
Mutual labels:  neo4j
decypher
A handful of cypher utilities for Node.js
Stars: ✭ 34 (+30.77%)
Mutual labels:  neo4j
ml-models
Machine Learning Procedures and Functions for Neo4j
Stars: ✭ 63 (+142.31%)
Mutual labels:  neo4j
neo4j.cr
Pure-Crystal implementation of Neo4j's Bolt protocol
Stars: ✭ 29 (+11.54%)
Mutual labels:  neo4j

twitter

Use the twitter streaming API and store tweets, users, ... in a NEO4J database.

Settings

Local settings

Add to your module a local_settings.py file which contains your twitter API credentials :

CONSUMER_TOKEN = ""

CONSUMER_SECRET = ""

ACCESS_TOKEN = ""

ACCESS_SECRET = ""'

Add as well a BROKER_URL to your settings like :

BROKER_URL = "amqp://guest:[email protected]:5672/"

Neo4j settings

This has been tested with Neo4J v2.3.6. After installing it, you need to set the credentials to connect to the server. I recommend adding the credentials to your environment variable : export NEO4J_AUTH=neo4j_user:neo4j_password

Example

Then starting streaming is quite simple: You need to instantiate the streamer :

streamer = Streaming(pipeline=stream_pipeline, batch_size=10)

where :

*stream_pipeline could be whatever you want where you process the tweets. I include a simple example in the utils.py module *batch_size should be the amount of tweets processed at once. I tried with 100, and it works just fine.

Then you need to start streaming:

streamer.start_streaming(to_track=settings.TO_TRACK)

This will generate messages to your broker. To consume them, simply start celery like that :

celery -A twitter worker -l info -Q streaming -n streaming

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].