Get all tweets filtered by the parameters that are in twitter advanced search.
Project description
all_twitter_scraper
All twitter scraper gets all tweets filtered by the parameters that are in twitter advanced search such as tweets that: include specific keywords, does not include specific keywords, include exact phrase, include specific hashtags, etc..
Table of Contents
Installation
To install all_twitter_scraper package, simply run:
pip install all_twitter_scraper
Usage
An example that clears most of the package parameters:
from all_twitter_scraper.modules.Twitter_Scraper import Twitter_Scraper
from datetime import date
from all_twitter_scraper.modules.Criteria import Criteria
if __name__ == "__main__":
criteria = Criteria()
criteria.set_language('ar')
criteria.set_since_date(date(2019, 1, 1))
criteria.set_until_date(date(2020, 4, 1))
criteria.set_all_of_keywords(['Mohammed', 'Aly'])
twitter_scraper = Twitter_Scraper()
tweets = twitter_scraper.scrap(criteria, return_tweets_list=True)
Buy me a coffee
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for all_twitter_scraper-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da0ed464f84ed8b3b25bbbcda10c1658c6969fa8c3f43abafb81f97a5118fa0 |
|
MD5 | a6d9bccff47266e7f11ce1d1e12ea627 |
|
BLAKE2b-256 | 93e86df878ddba2697cf3dc0044b7068c3b18051c7f0fd7b1318bcda58a447c3 |
Close
Hashes for all_twitter_scraper-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36effd537a43a4dd199de0fdbb2085643e001ec5d9875d27ffc1540ee941dc5 |
|
MD5 | c64399a0f9d1ac8ff61756de58beafd0 |
|
BLAKE2b-256 | 29e30d1a3a04031b97a82eabc50b6a8504c046a338aac29173ea67339c0f4563 |