Skip to main content
twitter-dedupe
==============

![travis-ci status](https://api.travis-ci.org/cmheisel/twitter-dedupe.png?branch=master)

Python library to retweet unique links from noisy Twitter accounts.

My personal use case
------------------------
Say you follow a news outlet that tweets the same link multiple times in a day, or a week. Maybe they provide different images or headlines, but it's the same story, over and over again.

I'd rather follow @{newsoutlet}-light and have a link show up there only once every 7 days or so.


How to use
-------------
1. Set up a Twitter account, say @{newsoutlet}lite
2. As @{newsoutlet}lite Follow @newsoutlet
3. Get your Twitter Consumer Key, Consumer Key Secret, Access Key and Access Key Secret from http://dev.twitter.com
4. Set up some environment variables
```
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_TOKEN_SECRET
REDISTOGO_URL=redis://{user}:{pass}@{domain}:{port}
TWITTER_SCREEN_NAME={newsoutlet}lite
WAIT_INTERVAL=300 # Time to wait between polls, in seconds
LOG_LEVEL=WARN # Or INFO, OR DEBUG, etc.
```
5. python bin/logonly.py
6. Now you have a deamon running that'll examine @{newsoutlet}lites home timeline, and log any tweets it would retweet as @{newsoutlet}lite
7. If you're happy quit bin/logonly.py
8. Now run python bin/retweet.py

Release files for twitter-dedupe 0.6.3

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-dedupe 0.6.3
File Size Uploaded
twitter-dedupe-0.6.3.tar.gz 6.4 kB Details

Release files / twitter-dedupe-0.6.3.tar.gz

Download URL twitter-dedupe-0.6.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0b38e9a5d88208e026629e2ed6d37092fd2077be5c8921db0019e8aed2a51d75
BLAKE2b-256 checksum
How to use checksums
9b52e87a7c2c73101ec36692e65be3dd534b5ad445bb9b8565faaf1293461ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6.3 This release

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5

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