Skip to main content

Simple project that extracts user tweets to csv / json based on the gist of yanofsky

Project description

# twix #

### Intro ###
Simple project that extracts user tweets to csv / json <br>
based on the gist of [yanofsky](https://gist.github.com/yanofsky/5436496)

### Installation ###
in your terminal:

> pip install twix

### Twitter API Keys ###

1. Go to [twitter developers](https://dev.twitter.com/)
2. Click on "Sign In" in the upper-right corner.
* There is a link to sign up under the username field if you do not already have a Twitter account.
* If you sign up for a new account, you'll have to confirm your email before you can get an API key.
3. Enter your credentials and sign in.
4. Back at [twitter developers](https://dev.twitter.com/), click on your avatar in the upper-right corner, then My Applications.
5. Click on "Create a new application".
6. Fill out the information, agree to the Rules of the Road, do the captcha, and click on "Create your Twitter application".
7. In the application page that comes up next, copy down the **Consumer key** and **Consumer secret**. This is half of the key info.
8. Click on "Create my access token" at the bottom of the application page, under "Your access token".
9. (You may have to refresh the page first) Now under "Your access token", copy down your **Access token** and **Access token secret**.

### Examples ###

```python
from twix.tweets_extractor import TweetsExtractor

te = TweetsExtractor('your_consumer_key', 'your_consumer_secret', 'your_access_token', 'your_access_token_secret')
te.get_all_tweets(screen_name='netanyahu', fmt='csv', path='../bb.csv')
```

### Contact ###
[Tal Peretz](https://www.linkedin.com/in/tal-per/)





Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twix-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file twix-1.0.0.tar.gz.

File metadata

  • Download URL: twix-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f6ad4bb4ddd5d53bbe2c1cc72695b8a47d1f5411af4d57ecefbe71998cb5b95f
MD5 f3d7ef8784b017e1683459fcf8b9892e
BLAKE2b-256 0f80e70ded011e1d7787822b5fa5140bbbf30eb0ebf43259f30a89a76378d562

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page