Quantcast
Channel: Active questions tagged feedparser - Stack Overflow
Browsing all 105 articles
Browse latest View live

how to handle 30x when using feedparser to parse rss url

Now I am using Python 3 feedparser to parse some RSS url, this is my code:if __name__ == "__main__": try: feed = feedparser.parse("https://ucw.moe/feed/rss") print(feed.status) except Exception as e:...

View Article


flutter feedparser dépendance [closed]

Running "flutter pub get" in flutter_app_rss...The current Dart SDK version is 2.10.4.Because flutter_app_rss depends on feedparser any which requires SDK version >=1.21.0 <2.0.0, version solving...

View Article


Feedparser is not sanitizing html text downloaded via asyncio aiohttp

I am downloading feed using aiohttp asyncioFeedparser is supposed to sanitize input text with its _HTMLSanitizer class to accept only specific tagsThe sanitizer does not work, any suggestions?import...

View Article

How to use feedparser with proxy in python 3?

I'd like to use a proxy and feedparser. This is how I'd do in urllib2:import urllib2, feedparserproxy = urllib2.ProxyHandler({"http":"proxy:port"})d =...

View Article

How do I pass raw untrusted text to feedparser.parse method in Python?

I am trying to use feedparser to parse text which I download using asyncio aiohttp libraryThe feed text is available HERE (Large document, hence not pasting here)The documentation of feedparser.parse...

View Article


Get Feeds from FeedParser and Import to Pandas DataFrame

I'm learning python. As practice I'm building a rss scraper with feedparser putting the output into a pandas dataframe and trying to mine with NLTK...but I'm first getting a list of articles from...

View Article

Is it possible to display hyperlinks in a Tkinter message widget?

I am creating a news feed program that uses the Feedparser module to read the Yahoo! RSS API, write key data to a text file, and then display the data organised in a Tkinter GUI.I was enquiring if it...

View Article

How to combine Python Re and Feedparser module into one function

I have a feed parser function that successfully parses data from an RSS feed.def get_posts_details(rss=None): if rss is not None: # import the library only when url for feed is passed import feedparser...

View Article


How to create Article tags from splitting the Title in Django

I want to create articles tags from the title of a RSS feed post. Then save the tags into a DB with a post_id of the title i got the tags from at the same time. Something like this:Title = "Voyant...

View Article


Access openSearch:totalResults using feedparser

How can I retrieve the openSearch:totalResults attribute using feedparser?I have a blogger API result which looks a bit like this (I have cut out some stuff to make it compact here)<feed...

View Article

Feedparser & Python 3.8: how do I get sub-elements from an NWS feed?

Reading an NWS alert feed, this code returns the "top-level" elements:import feedparserd = feedparser.parse('https://api.weather.gov/alerts/active?point=43.7299,-69.8443')for k, v in...

View Article

Python feedparser's bozo is of bool type instead of int

Disclaimer first: I am a python newbie.I am using feedparser version 6.0.8 (checked using pip freeze | grep feedparser) to parse Twitter feeds from random Nitter instances (using twiiit.com). Python...

View Article

Python program using feedparser slows over time [closed]

I have a Python program which is running in a loop and downloading 20k RSS feeds using feedparser and inserting feed data into RDBMS.I have observed that it starts from 20-30 feeds a min and gradually...

View Article


How to use an rss feed in python?

I have never worked with an RSS feed before, I can't seem to find the url of the feed.The page which is offering the RSS Feed:https://www.sec.gov/edgar/browse/?CIK=717826&owner=excludeI am using...

View Article

How to cycle through indices

so in this script I am writing to learn python, I would like to just put a wildcard instead of rewriting this whole block just to change line 2. what would be the most efficient way to consolidate this...

View Article


Discord.PY Bot - FeedParser throws TLSV1 alert when reading from previously...

My code is as follows:d = feedparser.parse("https://www.monroecounty.gov/incidents911.rss") entry = d.entries[num] i = 0 while i < num: response = "```\n----------- Event Title -------------\n\n" +...

View Article

Retrieve info between paragraph tags with feedparser

I've been reading through the documentation for feedparser and haven't been able to find a solution to this: I would like to retrieve only the string between <p></p>. An example of an...

View Article


How to parse a xml feed using feed parser python?

Im trying to parse a feed in python using feedparser. But all I get is None returned. Im not sure what im missing. Here is my code:import feedparserdef rss(self): rss =...

View Article

why the feedparser break without any error message when pull rss channel in...

I am using feedparser feedparser=6.0.2 to parse some rss resource in Python 3.10, when I using feedparser to get the response in the CentOS 7.x, the feedparser just exists without any exception...

View Article

Feedparser not returning values, only metadata

I'm using feedparser to get info from a public database (https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Bill()).Each of my entries looks as followsWhen accessing specific properties:url =...

View Article
Browsing all 105 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>