Giter VIP home page Giter VIP logo

mosaicbin's Introduction

Mosaicbin Mosaicbin logo

Mosaicbin is a client and proxy for Feedbin, which is a web-based RSS service. Mosaicbin enables old computers and old browsers to read RSS feeds despite not having any modern SSL or standards support. It does this by proxying feeds and entries from the Feedbin API, formatting them and converting images to be smaller and legacy-compatible, and serving up the result as regular non-SSL HTML 3.2(ish).

Prerequisites

Mac OS X or Linux Python 3.x PIP pipenv (optional)

Installation

After installing the prerequisites:

git clone https://github.com/jonpurdy/mosaicbin.git
cd mosaicbin
pip install requirements.txt

I haven't figured out the best way to deal with user credentials yet. But for now, just set them as environment variables:

export FEEDBIN_USERNAME='your_feedbin_username'
export FEEDBIN_PASSWORD='your_feedbin_password'

I've written a helper script to get you started:

./start.sh

This will open up the default Flask webserver on port 5000. You can connect to localhost:5000 on the machine you are serving from to test, or to the IP address if your machine if connecting from a legacy computer.

Testing

Tests are done with PyTest. Just run pytest. Coverage is basic and incomplete but should be enough to deal with any future maintenance.

To Do

  • ✓ use templates
  • ✕ use api key instead of password (not possible, HTTP Basic only and no API keys)
  • ✓ pagination on entries
  • ✓ put credentials in env variable
  • ✓ image conversion to non-http jpeg
    • ✓ intercept post, grab images, process and serve them for low bandwidth
    • ✓ parallelize image conversion
    • ✓ check if image has already been converted
    • ✕ clean up conversion directory automatically (will worry about this later)
    • ✓ easy way to change output size (in menu or config file)
  • ✓ put unread counts next to feed titles (needs optimization)
  • create vagrantfile
  • ✓ get rights to hamburger logo
  • ✓ create license
  • ✓ config/settings file
  • update local cached feeds' unread count
  • ✓ clean up / template generation

Links

Feedbin website: feedbin.com
License: GPL v3

mosaicbin's People

Contributors

jonpurdy avatar

Stargazers

 avatar Grant Hutchinson avatar Alex Ford avatar James Denton avatar

Watchers

Grant Hutchinson avatar James Cloos avatar  avatar

mosaicbin's Issues

Handle Feedbin accounts without tags

As of now, Mosaicbin fails because it tries to first assemble a list of tags. The assumption was that every account would have feeds organized by tags, but this was incorrect.

Fix convert_image_to_jpg_from_url() bug

When images from different sites have the same name (ex. title.jpg), convert_image_to_jpg_from_url() would consider them to be the same. To fix, I prepended a random number to the images so they wouldn't collide anymore.

I just realized that the code to prevent regenerating images that have been cached no longer works because it checks whether an image is cached based on the filename (which is now unique.

So I must change the way it detects whether an image has been generated and cached already.

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.