Metadata-Version: 2.1
Name: twitter-scraper-without-api
Version: 0.0.6
Summary: twitter_scraper without API
Home-page: https://github.com/HamedMinaeizaeim/twitter_scraper
Author: Hamed
Author-email: hamed.minaei@gmail.com
Project-URL: Bug Tracker, https://github.com/HamedMinaeizaeim/twitter_scraper/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: async-generator (==1.10)
Requires-Dist: attrs (==21.4.0)
Requires-Dist: beautifulsoup4 (==4.11.1)
Requires-Dist: build (==0.7.0)
Requires-Dist: certifi (==2022.5.18.1)
Requires-Dist: cffi (==1.15.0)
Requires-Dist: charset-normalizer (==2.0.12)
Requires-Dist: colorama (==0.4.4)
Requires-Dist: cryptography (==37.0.2)
Requires-Dist: distlib (==0.3.4)
Requires-Dist: distro (==1.7.0)
Requires-Dist: filelock (==3.7.0)
Requires-Dist: h11 (==0.13.0)
Requires-Dist: idna (==3.3)
Requires-Dist: importlib-metadata (==4.11.3)
Requires-Dist: mozdownload (==1.26.0)
Requires-Dist: mozfile (==2.1.0)
Requires-Dist: mozinfo (==1.2.2)
Requires-Dist: numpy (==1.21.6)
Requires-Dist: outcome (==1.1.0)
Requires-Dist: packaging (==21.3)
Requires-Dist: pandas (==1.3.5)
Requires-Dist: pep517 (==0.12.0)
Requires-Dist: platformdirs (==2.5.2)
Requires-Dist: platinfo (==0.15.0)
Requires-Dist: progressbar2 (==4.0.0)
Requires-Dist: py-firefox-driver-manager (==0.0.4)
Requires-Dist: pycparser (==2.21)
Requires-Dist: pyOpenSSL (==22.0.0)
Requires-Dist: pyparsing (==3.0.9)
Requires-Dist: PySocks (==1.7.1)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: python-utils (==3.3.0)
Requires-Dist: pytz (==2022.1)
Requires-Dist: pywin32-ctypes (==0.2.0)
Requires-Dist: redo (==2.0.3)
Requires-Dist: requests (==2.27.1)
Requires-Dist: selenium (==4.1.5)
Requires-Dist: six (==1.16.0)
Requires-Dist: sniffio (==1.2.0)
Requires-Dist: sortedcontainers (==2.4.0)
Requires-Dist: soupsieve (==2.3.2.post1)
Requires-Dist: style (==1.1.0)
Requires-Dist: tomli (==2.0.1)
Requires-Dist: treeherder-client (==5.0.0)
Requires-Dist: trio (==0.20.0)
Requires-Dist: trio-websocket (==0.9.2)
Requires-Dist: typing-extensions (==4.2.0)
Requires-Dist: update (==0.0.1)
Requires-Dist: urllib3 (==1.26.9)
Requires-Dist: virtualenv (==20.14.1)
Requires-Dist: wsproto (==1.1.0)
Requires-Dist: zipp (==3.8.0)

<h1> Twitter scraper selenium </h1>
<p> Python's package to scrape Twitter's front-end easily with selenium.  </p>


[![PyPI license](https://img.shields.io/pypi/l/ansicolortags.svg)](https://opensource.org/licenses/MIT) [![Python >=3.6.9](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)](https://github.com/shaikhsajid1111/facebook_page_scraper/graphs/commit-activity)

# 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 
