Web scraping XML with beautifulsoup
-
19-10-2022 - |
문제
I've been trying to understand the principals of web scraping, with some difficulty. I am trying to write a script using beautifulsoup that scrapes the data for train schedules (found here http://api.bart.gov/api/etd.aspx?cmd=etd&orig=rock&key=MW9S-E7SL-26DU-VV8V) and tells the user when the next train is arriving. I've already gotten the data in with urllib2 and beautiful soup: I can print it out and see it, but I'm having trouble writing an algorithm for extracting that information. Advice greatly appreciated.
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow