Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting full RSS tree #15

Closed
b-w-a opened this issue Aug 14, 2018 · 2 comments
Closed

Not getting full RSS tree #15

b-w-a opened this issue Aug 14, 2018 · 2 comments

Comments

@b-w-a
Copy link

b-w-a commented Aug 14, 2018

HI there - trying to get this:

result <- tidyfeed(feed = "https://www.fandango.com/rss/moviesnearme_90025.rss")

But I only get the movie theatre locations, not the movies playing at that location. Any suggestions?

@RobertMyles
Copy link
Owner

Hi,

That's a weird one, it should come back with the 'description' field. I'm getting errors regardless, so I need to do some work on the package, I've been too busy to come back to it lately. I'm going to close this because there are some bigger problems that need to be fixed and it'll probably get fixed with those, in the next version. Thanks for letting me know about the problem.

@RobertMyles
Copy link
Owner

I'm using xml2::xml_find_all(channel, "item") to find each individual item in the RSS feed, which works for most of the feeds I've seen. And doesn't work for this one.

I'd suggest taking a low-level look at it, using xml2. This will show you the details, i.e. the fact that the movies don't come back:


feed <- "https://www.fandango.com/rss/moviesnearme_90025.rss"
 doc <- try(httr::GET(feed), silent = TRUE)
 doc <- doc %>% xml2::read_xml()
channel <- xml2::xml_find_all(doc, "channel")
site <- xml2::xml_find_all(channel, "item")
st <- xml2::as_list(site)

Let me know if you figure it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants