3 ms·
The page's HTML is the API. It's pretty easy to download a web page, parse the HTML and then extract specific bits of information from it. The browser does the
by matheusmoreira 9y ago
The page's HTML is the API. It's pretty easy to download a web page, parse the HTML and then extract specific bits of information from it. The browser does the same thing on the user's behalf, which is why it is called the user agent.
- hrasyid 9y agoAn API is a contract. HTML can be tweaked and become incompatible with your parser at the developer's whim.
- gkya 9y agoOh luckily major APIs never change. /s
- hrasyid 9y agoNot as easily as an HTML page
- matheusmoreira 9y agoThat just means your code must be maintained. You can verify that the HTML has a given structure and log a failure if it doesn't.
- amelius 9y agoUse Deep Learning to circumvent that.