Coder Social home page Coder Social logo

cf_tweepy's Introduction

cf_tweepy

  • Using tweepy API in one call.
  • Supports free 7 day search API (a.k.a sandbox) and search_full_archive (premium)
  • Search TWEETS by passing queries.
  • Just pass the consumer_secret and consumer_key to authenticate. (See examples)

Requirements

  • tested with Python3.7
  • tweepy - pip install git+https://github.com/tweepy/tweepy@1a71938e81fbb829fd45bdd06d5798762078b10f

Usage

  • Download the project folder to the working DIR.

  • Look at the cf_tweepy_usage.ipynb for usage examples.

Using the FREE sandbox

from cf_tweepy import scrape_tweets_sandbox
# Authorize
sand_box = scrape_tweets_sandbox(consumer_key='<key>',
                                 consumer_secret='<secret>')
# Params
query_list = ['Vegan milk', 'Vegan meat']
count = 1000
lang = 'en'

df = sand_box.scrape(query_list,count,lang)
df.head()

Using the Premium full archive search

from cf_tweepy import scrape_tweets_full_archive

sand_box = scrape_tweets_full_archive(consumer_key='<key>',
                                      consumer_secret='<secret>')
                                      
# Params
environment_name = 'Discourse'
query = 'tierhaltungsform'
fromDate='200603210000'
toDate = '202011010000'   
maxResults= 500

df = sand_box.scrape(environment_name, query, fromDate, toDate, maxResults)
df.head()

cf_tweepy's People

Contributors

anksng1201 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.