Error: feed is empty. Did you set up 'element' field correctly? #8

Open
opened 2020-07-23 12:19:28 +02:00 by Ghost · 3 comments

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?

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?
Owner

You can pull the latest commit (d48f2f5d5c) and run python3 manage.py makemigrations then python3 manage.py migrate.

You can pull the latest commit (d48f2f5d5c60dddb849f23273aa450e3344f834e) and run `python3 manage.py makemigrations` then `python3 manage.py migrate`.
Author

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

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
Author

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?

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?
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hipstercat/hrss#8
No description provided.