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

what's the use of feed(input()) in Python?

from HTMLParser import HTMLParserclass MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): print ('Start :', tag) for ele in attrs: print ('->', ele[0], '>', ele[1]) def...

View Article


Python - feed updates using ETag and Modified giving 200 but feed is not updated

I am trying to skip over RSS feeds if not updated since my last visit. For this, the following guidelines of the documentation:http://pythonhosted.org/feedparser/http-etag.html, I wrote the following...

View Article


How to build a simple RSS reader in Python 3.7?

I built a simple RSS reader on Python and it is not working.In addition, I want to get the featured image source link of every post and I didn't find a way to do so.it shows me the Error: Traceback...

View Article

Cannot get thumbnail in rss feed in laravel

I am using willvincent feed reader to parse rss feeds, But i cannot seem to get the thumbail of the images,Here is my codeRoute::get('feed', function(Request $request) { $f =...

View Article

Accessing duplicate feed tags using feedparser

I'm trying to parse this feed: https://feeds.podcastmirror.com/dudesanddadspodcastThe channel section has two entries for podcast:person<podcast:person role="host"...

View Article


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
Browsing all 106 articles
Browse latest View live


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