All Questions
Tagged with feedparser django
29 questions
1
vote
1
answer
92
views
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 = "...
0
votes
1
answer
1k
views
Using feedparser/RSS, how do I pass the feed object from views.py to .html in django?
I am trying to add a simple RSS parser to my web application. The objective is to grab an RSS channel and display news from it on a single page. I managed to do this for a single object, but can't do ...
0
votes
0
answers
664
views
How to use Feedparser in Django Project
Could anyone direct me on how to include feedparser in my Django project? Essentially I'm building a news aggregator, so there will be 100's of rss feeds to parse through.
I understand the basic ...
1
vote
0
answers
216
views
why is feedparser returning fewer results than there actually are?
I am using feed parser along with beautifulsoup. There is no key explicitly for the youtube embed code. Instead it is inside of the html via the 'content' key like this
'content': [{'value': '<h4&...
0
votes
0
answers
434
views
How do I check if an RSS feed has been updated or not in a Django application?
In my models.py, I have the following items:
class Feed(models.Model):
rss_url = models.URLField()
updated = models.DateTimeField(blank=True, null=True)
def save(self, *args, **kwargs):
...
1
vote
1
answer
2k
views
'ascii' codec can't encode character u'\u2019' in position 5: ordinal not in range(128) error
I am using feed parser to create objects for a django model.
In my models.py, I have the following model:
class Content(models.Model):
title = models.CharField(max_length=500)
link = models....
0
votes
1
answer
221
views
Why can't I get a date from an rss feed and set it to my Django model?
I am using feed parser to create content from an rss feed. Its something like this:
import feedparser
def parse_rss(rss_url):
return feedparser.parse(rss_url)
def generate_content_from_feed(...
0
votes
1
answer
279
views
import feed parser in my django app is throwing an error
I installed my dependencies using
pip install -r requirements.txt
I then went to my views but the word feedparser is throwing an error in my pycharm ide. I did pip freeze and I can see that it's ...
5
votes
3
answers
6k
views
Datetime localization with python/django
I am trying to parse an RSS feed. Entries in the feed have date elements like:
<dc:date>2016-09-21T16:00:00+02:00</dc:date>
Using feedparser, I try to do:
published_time = datetime....
2
votes
2
answers
384
views
Python feedparser can not read WordPress custom feeds
I'm Using Python2.7 and feedparser. I need to read feed of a wordpress site. I could read some common feed tags like title, content, ... of each items from feed, but I couldn't read some custom feed ...
1
vote
1
answer
200
views
python feedparser - removing <script> tag and everything inside from feed after reading
I am reading feed with feedparser, some content inside feed contains something like
<p> some word </p>
<script>
(function(i,s,o,g,r,a,m){i["...
0
votes
1
answer
1k
views
I would like to catch the image from RSS feed
I'm executing these lines:
views.py
def pull_feed(feed_url, posts_to_show=5):
feed = feedparser.parse(feed_url)
posts = []
for i in range(posts_to_show):
pub_date = feed['entries'...
3
votes
1
answer
5k
views
Reading RSS feed and displaying it in Django Template | feedparser
Refer this blog: http://johnsmallman.wordpress.com/author/johnsmallman/feed/
I want to fetch the RSS feed for my application. The above blog is a wordpress blog.
I am using feedparser
import ...
1
vote
2
answers
909
views
Using ETag in feedparser
I'm writing a Django view that gets the latest blog posts of a wordpress system.
def __get_latest_blog_posts(rss_url, limit=4):
feed = feedparser.parse(rss_url)
return something
I tried in a ...
4
votes
0
answers
847
views
Google Feed API | Rate Limit Exceeded | No result returned
I am trying to get Google News of about 5000 companies using python.
I have scheduled to job to run like every 12 hours.
What i actually do is using the Google news link (https://news.google.com/...
0
votes
1
answer
335
views
'QuerySet' object has no attribute 'url' when using feedparser in Django
This is follow up to the question from here bozo_exception in Django / feedparser
I would like to iterate through many feeds from models/DB and have each of them displayed in the html template. While ...
0
votes
1
answer
870
views
bozo_exception in Django / feedparser
I'm fairly new to Django and Python. I'm trying to build small RSS reader using feedparser. I'm getting this error and I can't seem to find any solutions anywhere
{'feed': {}, 'bozo': 1, '...
5
votes
1
answer
957
views
Django rss feedparser returns a feed with no "title"
I'm writing a basic RSS feed reader in Django. I have a form in which a user submits a rss feed, and I add it to his feeds list. But for some reason, I'm unable to extract basic information about the ...
1
vote
1
answer
722
views
Feedparser gives SAXParseException on 'valid' RSS
I am trying to display content from an external rss feed on my django based site using a handy inclusion tag I found in this snippet: djangosnippets.org/snippets/311/
However, feedparser is choking ...
0
votes
1
answer
180
views
Django rss feedparser to render through a inclusion_tag
What I'm trying to do is: Have my inclusion tag using feedparser:
from django.template import Library
import feedparser
@register.inclusion_tag('home/dashboard.html')
def rss_extract(tag):
rss = ...
0
votes
1
answer
886
views
Confusion with python's feedparser speed, it's very fast on the command line but slow when im deploying
feed = feedparser.parse("http://someyoutubeurl")
video_data = feed.entries[0]
# Adding the data to a dict, etc...
This line of code when typed on my python command line instantly runs and finishes. ...
4
votes
2
answers
3k
views
Less painful way to parse a RSS-Feed with lxml?
I need to display RSS-feeds with Python, Atom for the most part. Coming from PHP, where I could get values pretty fast with $entry->link i find lxml to be much more precise, faster, albeit complicated....
1
vote
1
answer
365
views
Django and Feedparser - Cannot parse URLs queried from model
Basically , i am saving few feed urls in Django model and for parsing, the urls that i retrieve from model, it is not parsed. Below is how i am trying to query model and parsing a url using feedparser....
0
votes
2
answers
671
views
Convert and convert back datetime in Django
I am parsing feeds using feedparser and I am trying to store updated or updated_parsed attributes of feeds in Django db.
But it shows an error as [u'Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[....
5
votes
2
answers
2k
views
Populating a Django DateTimeField with feedparser
I'm attempting to read my school's athletics/activities calendar, available in iCal or RSS format, into a Django Events model using feedparser.
Everything works, except the dates. Feedparser ...
1
vote
2
answers
837
views
django feedparser limit the result
im doing something with feedparser: i have a templatetag for display "news" in my home page, but , how ill limit the feedparser result?
inclusion tag
from django.template import Template, Library
...
0
votes
2
answers
231
views
How does FeedJack fetches historical feeds
I am building a news aggregation website and I am looking for a way to fetch old feeds(of any particular website ) into the system. During this course, I stumbled on to Feedjack. It is said that it ...
2
votes
2
answers
1k
views
Parse Facebook feed datetime in python?
I am reading a Facebook updates feed using the python library 'feedparser'.
I loop through the collection of entries in my Django templates, and display the results.
The updated field is returned in a ...
3
votes
2
answers
5k
views
Error importing external library within Django template tag library
So I'm attempting to write a Django reusable app that provides a method for displaying your Twitter feed on your page. I know well that it already exists 20 times. It's an academic exercise. :)
...