Skip to main content

Twitter scraper selenium

Python's package to scrape Twitter's front-end easily with selenium.

PyPI license Python >=3.6.9 Maintenance

Twitter_scraper_without_API

This code was developed to extract information from twitter without using API as there are a limitation and costs for using official twitter API. You can extract based on your keyword and time frame (in minutes). You can extract unlimitted number of tweets.

Pre-requests

  • Python 3.6+
  • Browsers(Firefox)

Instalation

you can install from source code using

git clone https://github.com/HamedMinaeizaeim/twitter_scraper_without_API.git

and then run

Python setup.py install 

or you can run

pip install -r requirements.txt

alternatively, you can install using PyPl :

 pip install twitter_scraper_without_API

How to use

To use this library, you just need to import the TwitterScraper scraper class and then specify your keyword search. By default, it will return all tweets within a minute. You can change it to extract tweets in the last n minutes. Here is a code to do that:

 from src.twitter_scraper_without_api import TwitterScraper
 twitter = TwitterScraper('bitcoin')
 twitter.last_n_mins = 3
 twitter.fetch_data()

Export option

You can export data as json, panda (Dataframe) and csv

df = twitter.store_data('dataFrame')
csv = twitter.store_data('csv')
json = twitter.store_data('json')

Privacy

There is no issue with privacy in this library and search is based on publicly avaialble information

Metadata

Release files for twitter-scraper-without-api 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twitter-scraper-without-api 0.0.6
File Size Uploaded Provenance Actions
twitter_scraper_without_api-0.0.6.tar.gz 9.5 kB Without provenance Details for twitter_scraper_without_api-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for twitter-scraper-without-api 0.0.6
File Interpreter ABI Platform Actions
twitter_scraper_without_api-0.0.6-py3-none-any.whl Python 3 none any Details for twitter_scraper_without_api-0.0.6-py3-none-any.whl

Total release size: 18.9 kB

Release files / twitter_scraper_without_api-0.0.6.tar.gz

Download URL twitter_scraper_without_api-0.0.6.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d0be37b646ce95c2a1f7bd32c8d09ba6d2db7bdf2251c73b8022cc6b536bffea
BLAKE2b-256 checksum
How to use checksums
6f397748ed1b80882c17afc6aeb60dbbd19411a51518ad9f6a24399122ecc6fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / twitter_scraper_without_api-0.0.6-py3-none-any.whl

Download URL twitter_scraper_without_api-0.0.6-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3f5041d1ccf0c43fcbb93bbc130521550e5483a94271a951928774a00675667
BLAKE2b-256 checksum
How to use checksums
6493f710998c725bee4a2dbd8faeff899997de18eda79d070ee7ffa12656dec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for twitter-scraper-without-api 0.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page