Skip to main content

TweetBase

[![Downloads](https://pypip.in/d/TweetBase/badge.png)](https://crate.io/packages/TweetBase) [![Downloads](https://pypip.in/v/TweetBase/badge.png)](https://crate.io/packages/TweetBase)

Download tweets into a CouchDB database

Features

  • Flexible: works with any Twitter endpoint (REST API or Streaming API).

  • Geocode lookup for the Twitter user location using Google’s Map geocode service.

  • Uses CouchDB for storage.

Installation

Usage

The first time the script is executed the database is created. For example, to store tweets in a database called “tw_test” and to stream tweets that contain “pizza”, run this command:

python -m TweetBase.TweetBase

-couchurl http://127.0.0.1:5984 -dbname tw_test -endpoint statuses/filter -parameters track=pizza

The TweetBase script downloads tweets and stores them into the specified database. Tweet meta data is stored separately from the user meta data. This is done so user data is only stored once in the database. The two types of records are differentiated by the “type” field, which is either TWITTER_STATUS or TWITTER_USER.

The same time that a new database is created, some views are also created. These views are:

  • get_tweets

  • get_users

  • count_type

In the client_examples folder you will find a Python example and a JavaScript example that uses these views to retrieve data.

Dependencies

  • TwitterAPI

  • TwitterGeoPics

  • couchdb

Metadata

Release files for TweetBase 0.2.12

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

Source distribution (sdist)

Source distribution for TweetBase 0.2.12
File Size Uploaded
TweetBase-0.2.12.tar.gz 6.9 kB Details

Release files / TweetBase-0.2.12.tar.gz

Download URL TweetBase-0.2.12.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1732ee754d5eefcfc583b853c730714cd757821bfc4bc975e9b815bc650dee65
BLAKE2b-256 checksum
How to use checksums
e1e1ff85cbb8a7f6ad8e6f5e4658816154f602a6fe56e80627794983aa668203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.12 This release

1 release file

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.5.4

1 release file

0.2.5.3

1 release file

0.2.5

1 release file

0.2.4.3

1 release file

0.2.4.2

1 release file

0.2.4.1

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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