Error: feed is empty. Did you set up 'element' field correctly? #8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What ever element I select I get this error for this website
https://www.agriculture.com/markets/newswire
here the element
html > body.html.not-front.not-logged-in.no-sidebars.page-taxonomy.page-taxonomy-term.page-taxonomy-term-.page-taxonomy-term-77.category-page.category-markets > main.karma-site-container > div.panel-pane.pane-page-content > div.pane-content > div.sfg-category-page.missing-sponsor-banner.content > section.page.category-page-content.clearfix > div.page-primary-content > div.panel-pane.pane-views-panes.pane-category-content-category-recent-content-first-three > div.pane-content > div.view.view-category-content.view-id-category_content.view-display-id-category_recent_content_first_three.view-dom-id-9b73308d0420a244abee3b327380936f > div.view-content > article.views-row.views-row-1 > div.recent-content-title-teaser.recent-content-title-teaser--noimage
to be able to have it all I had to change in models.py, element = models.CharField(max_length=1000)
Any advice?
You can pull the latest commit (
d48f2f5d5c
) and runpython3 manage.py makemigrations
thenpython3 manage.py migrate
.thanks. done!
this allows me to input long strings of element but for some odd reason I m still not managing to pull the rss feed from this link https://www.agriculture.com/markets/newswire. I've done successfully for others.
Here the element, title and content selectors I have on my feed that give me:
Error: feed is empty. Did you set up 'element' field correctly?
html > body.html.not-front.not-logged-in.no-sidebars.page-taxonomy.page-taxonomy-term.page-taxonomy-term-.page-taxonomy-term-77.category-page.category-markets > main.karma-site-container > div.panel-pane.pane-page-content > div.pane-content > div.sfg-category-page.missing-sponsor-banner.content > section.page.category-page-content.clearfix > div.page-primary-content > div.panel-pane.pane-views-panes.pane-category-content-category-recent-content-first-three > div.pane-content > div.view.view-category-content.view-id-category_content.view-display-id-category_recent_content_first_three.view-dom-id-7fc3bbf501d1b4a7ec5e6946a4c25366 > div.view-content > article.views-row.views-row-1 > div.recent-content-title-teaser.recent-content-title-teaser--noimage
h3
div.field-body > p
If you have a minute to investingate it would really make my day!
Thanks
after many trials I found the working element.
It should have been only
.recent-content-title-teaser--noimage
For some reason the script did not like the long version.
Is this a bug?