Twitter Hashtag Scraper
Unofficial Twitter hashtag scraper using free proxies. No API keys required
Installation
pip install twitter-hashtag-scraper
Usage
Import the package and create an object of the scraper using:
- hashtag (str): hashtag to scrap
- x_guest_token (str): a valid token from Twitter. You can check the requests in your browser with Developer Tools, XHR filter and search for a request to https://api.twitter.com/2/search/adaptive.json? to obtain the value from the headers.
- use_proxy (boolean): boolean to activate proxies or not.
- output_path (str, optional): output path. Defaults to None.
- max_tweets (int, optional): max number of tweets to download else try to get tweets until scroll is over. Defaults to None.
Then calling the method collect() will retrieve the data. You need to have a valid x_guest_token checking the requests with Twitter.
from twitter_hashtag_scraper import TwitterHashtagScraper
TwitterHashtagScraper(hashtag="#MalagaCF",x_guest_token="1331317358300979202",use_proxy=False,output_path="/Users/youruser/Desktop",max_tweets=60).collect()
Metadata
Release files for twitter-hashtag-scraper 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twitter-hashtag-scraper-1.2.2.tar.gz | 7.8 kB | Without provenance | Details for twitter-hashtag-scraper-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twitter_hashtag_scraper-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for twitter_hashtag_scraper-1.2.2-py3-none-any.whl |
Total release size: 17.5 kB
Release files / twitter-hashtag-scraper-1.2.2.tar.gz
| Download URL | twitter-hashtag-scraper-1.2.2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fedca10b4bce50fa6608f39bf64c0b7f076eba3989a78880d02a6fcab0a320c9
|
|
BLAKE2b-256 checksum How to use checksums |
00d8e64b4bcd18a3f64d3f3215715ccbc33700e06896070c45a9836cddbed75f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.2
|
Release files / twitter_hashtag_scraper-1.2.2-py3-none-any.whl
| Download URL | twitter_hashtag_scraper-1.2.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bc923d981aff7360e8f95df4280460335fda384f1b51b15134146f04f920bc3
|
|
BLAKE2b-256 checksum How to use checksums |
af1d0937099891caf15286b6bc911def5a5259205081a66893f43ab5cfb8b4f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.2
|
Security for twitter-hashtag-scraper 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.