A simple scraper for Twitter (requires Python >= 3.6)

theenglishway (time) a2bfe5acbb Update setup.cfg vor 7 Jahren
.github 4935b1edbf Initial commit vor 7 Jahren
docs 4935b1edbf Initial commit vor 7 Jahren
tests 2d5db0e897 Some renaming vor 7 Jahren
twhatter 7c4f441828 Add loop break in Client for profile vor 7 Jahren
.editorconfig 4935b1edbf Initial commit vor 7 Jahren
.gitignore 4935b1edbf Initial commit vor 7 Jahren
.travis.yml 4935b1edbf Initial commit vor 7 Jahren
AUTHORS.rst 4935b1edbf Initial commit vor 7 Jahren
CONTRIBUTING.rst 4935b1edbf Initial commit vor 7 Jahren
HISTORY.rst 4935b1edbf Initial commit vor 7 Jahren
LICENSE 4935b1edbf Initial commit vor 7 Jahren
MANIFEST.in 4935b1edbf Initial commit vor 7 Jahren
Makefile 4935b1edbf Initial commit vor 7 Jahren
Pipfile 18ddad72c5 Add basic database recording vor 7 Jahren
Pipfile.lock 4935b1edbf Initial commit vor 7 Jahren
README.rst 8d7ffbee9d Update README with some basic instructions vor 7 Jahren
setup.cfg a2bfe5acbb Update setup.cfg vor 7 Jahren
setup.py 4935b1edbf Initial commit vor 7 Jahren
tox.ini 4935b1edbf Initial commit vor 7 Jahren

README.rst

========
Twhatter
========


A simple scraper for Twitter

Installation
------------

..highlight: shell

$ pip install -e git+https://code.theenglishway.eu/theenglishway-corp/twhatter

Use
---

Display some user's tweets

..highlight: shell

$ twhatter timeline realDonaldTrump --limit 10











Put them into a local database (by default in /tmp/db.sqlite)

..highlight: shell

$ twhatter db timeline realDonaldTrump

Open a session on the local database and make queries with SQLAlchemy

..highlight: shell

$ twhatter db shell

..highlight: python

In [1]: session.query(Tweet).all()
Out[1]:
[