Skip to main content

aio-feedfinder2

This is an asynchronous Python library for finding links feeds on a website.

It is based on the synchronous (requests based) feedfinder2, written by Dan Foreman-Mackey, which is based on feedfinder - originally written by Mark Pilgrim and subsequently maintained by Aaron Swartz until his untimely death.

Usage

Feedfinder2 offers a single public function: find_feeds. You would use it as following:

import asyncio
from aio_feedfinder2 import find_feeds

loop = asyncio.get_event_loop()
task = asyncio.ensure_future(find_feeds("xkcd.com"))
feeds = loop.run_until_complete(future)

Now, feeds is the list: ['http://xkcd.com/atom.xml', 'http://xkcd.com/rss.xml']. There is some attempt made to rank feeds from best candidate to worst but… well… you never know.

This asyncio variant is ideally suited to find feeds on multiple domains/ sites in an asynchronous way:

import asyncio
from aio_feedfinder2 import find_feeds

loop = asyncio.get_event_loop()
tasks = [find_feeds(url) for url in ["xkcd.com", "abstrusegoose.com"]]
feeds = loop.run_until_complete(asyncio.gather(*tasks))

>>> feeds
... [
...     ['http://xkcd.com/atom.xml', 'http://xkcd.com/rss.xml'],
...     ['http://abstrusegoose.com/feed.xml', 'http://abstrusegoose.com/atomfeed.xml']
... ]

License

Feedfinder2 is licensed under the MIT license (see LICENSE).

Release files for aio-feedfinder2 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aio-feedfinder2 0.3.0
File Size Uploaded
aio-feedfinder2-0.3.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aio-feedfinder2 0.3.0
File Interpreter ABI Platform
aio_feedfinder2-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / aio-feedfinder2-0.3.0.tar.gz

Download URL aio-feedfinder2-0.3.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
03786ffaa4b570ac489d5a101ec54978d29c4e78c2dd42253b5c2e37d1bb3323
BLAKE2b-256 checksum
How to use checksums
8ceab23da2ab01c612414164058d6a537efa9cf6b020d4786e2deab5192125df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / aio_feedfinder2-0.3.0-py3-none-any.whl

Download URL aio_feedfinder2-0.3.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f226f9c918ad229cc8a0623dd95258b7b02ce8b70d602e761aa51ac12d9bc4c
BLAKE2b-256 checksum
How to use checksums
d5d416a25bb277a9c189f20118c970c13d21b1fa9209cb4d9290738cc4fd1565
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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