Reuben Castelino - projectdelphai@gmail.com
Karzetek is an anglicized name of Karze\u0142ek, a Polish myth about diminutive dwarfs who live in mines, protect miners, and guard precious jewels.
Karzetek is a python API that searches through a feed or url for external hyperlinks. It finds any rss feeds associated with those hyperlinks and returns them as a json string. The logic behind karzetek is that if A likes B enough to link to it and you like A then you might like B as well.
If you want to install this service for personal use:
- pip install feedparser beautifulsoup4 Flask
- git clone https://github.com/projectdelphai/karzetek.git
- python index.py
It is recommended that you install this all under a virtualenv folder.
You will also need some sort of postgres database.
The API itself is hosted on karzetek.heroku.com. To get recommendations, the format is as follows:
karzetek.heroku.com?feed=FEED_URL
The feed url should not be enclosed in quotes.
The process is currently pretty slow and you should recieve the json in about 15 seconds. However, it does have caching, so the more karzetek is used the more likely your response will be 4-6 seconds.
Within this repo, index.py handles the online API service. The actual code dealing with finding recommendations is isolated to the karzetek.py file.
To use it:
from karzetek import Karzetek
karzetek = Karzetek()
to get recommendations from a url:
recommendations = karzetek.url_recommendations(url)
to get recommendations from a feed url:
recommendations = karzetek.feed_recommendations(feed_url)
To help out:
- Fork repo
- Make changes
- Change documentation to reflect your changes
- Make a pull request
More help is always welcome. Here are some outlined goals:
- More documentation - Always needed
- Speed up searching - Always, database caching may help here
- Tests - I don't know how to do this personally.
- Database caching - Working on it now
- Maybe a wiki? - Not a big enough project yet though.
- Integrate with Tiny Tiny RSS - longer term goal
0.0.2-1 refactored removed duplicated recommendations
0.0.2 added basic database records
0.0.1
- Initial Commit