I am attempting to parse through the Mars weather report on NASA's website but whenever I use requests to get the html the information I'm looking for is no longer present. I've attached screenshots of what I see when inspecting, and what I see in the request I made. Any help would be appreciated thanks.
#๐ Need Help Parsing NASA html
27 messages ยท Page 1 of 1 (latest)
@languid plover
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
i'm pretty sure nasa has a lt of APIs for a lot of stuff
They do
I've tried looking online and every API is from Insight or another rover which are all offline or outdated
Yeah it's stupid easy to get API access for NASA
the weather API linked on the website has been outdated for a few years
yeah, all data from insight stopped updating in 2020, I tried looking for an API that records Curiosity's data but I couldn't find one, which is why I attempted to parse through the html on the website
just out of curiosity what's the url that has different content in the browser vs requests?
I'm just not capturing what's in between the <span class="marsDate"> and </span>
it looks like they use an api call to load the data
i assume this is a public api? it has the rss path https://mars.nasa.gov/rss/api/?feed=weather&category=msl&feedtype=json
oh neat, how'd you find that?
wow, thank you!
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ Need Help Parsing NASA html
