GithubHelp home page GithubHelp logo

friends2feeds's Introduction

Friends2Feeds: Taking Feeds Back from Social Media

Long ago (in Internet time), people used feeds to stay up-to-date with what happened on the Web. Then came big platforms who took that concept (and sometimes the word itself) and made everyone believe that it was better when there were lots of ads in it and an algorithm choosing what you saw.

We can do better. Social media might be suitable for some purposes, but often you want to make sure you see every post from a particular person, organisation, or project. Feed readers are a better fit for this, but feed discovery is cumbersome -- we've become conditioned to the instant gratification of hitting 'follow' rather than taking the time to hunt down a feed and hooking it up in a feed reader.

Friends2Feeds helps to reverse this tendency, by searching the people you follow on social media (specifically Twitter, to start with) and creating an OPML file from any feeds it finds, so that you can easily import them into your feed reader. Then you can decide whether or not you need to follow all of those social media accounts.

Installation

If you already have Python on your system, it's as easy as:

> pip3 install friends2feeds

Creating an OPML File

friends2feeds.py takes a Twitter username as the -t option, and outputs an OPML file for that person's friends. For example:

> TWITTER_ACCESS_TOKEN=MY_TOKEN friends2feeds.py -t mnot > friends.opml

Then, import that OPML file to your feed reader.

Note that TWITTER_ACCESS_TOKEN needs to be in the environment, carrying your twitter API access token. To get one, you'll need to:

  1. Sign up for a Twitter developer account
  2. Create a new project
  3. Create a new app within that project
  4. Go to the "Keys and Tokens" tab and copy down the Bearer Token (generating a new one if necessary).

In the example above, the token is MY_TOKEN; yours is likely to be considerably longer than that.

Updating Your Feeds

Over time, you might follow new people, and the people you follow might add new feeds. To update your feed reader without adding a lot of duplicates, you can use the -i flag to specify the location of your old OPML file (either an export from your feed reader, or preferably the last OPML file you generated with friends2feeds); all of the feeds in it will be excluded from the output:

> TWITTER_ACCESS_TOKEN=MY_TOKEN friends2feeds.py -t mnot -i old.opml > friends.opml

friends2feeds's People

Contributors

mnot avatar

Watchers

James Cloos avatar  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.