GithubHelp home page GithubHelp logo

feedstream's Introduction

feedstream

A Python package for downloading data from the Feedly API. This is not a wrapper for the full Feedly API but a Python library that is designed to support a particular workflow, in which articles are classified in Feedly by saving them to boards and the data on the articles is downloaded for analysis.

Usage

Simply set the API token and timezone in config.json and download data on all articles that have been saved as entries to boards in Feedly with:

import feedstream as fs
download = fs.download_entries()

This returns a dictionary with three keys:

  • timestamp contains a Feedly timestamp of the time this data was downloaded from Feedly
  • fieldnames is a list of the fieldnames used as keys for each item in the items list
  • entries is a list of all entries saved to boards, along with the id and name of their board

Entries can be downloaded directly to a csv with fs.download_entries_csv(), or to a pandas dataframe with timestamp, df = fs.download_entries_df().

You can run the package as a program directly from the command line with python -m feedstream, which downloads the data to a csv in the application data directory. You can set feedstream to only download articles that have been added to boards since the last time data was saved by setting download_new to True in config.json.

Tests

Run python -m unittest -v to run the unit tests.

feedstream's People

Contributors

olihawkins 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.