Hacker News new | ask | show | jobs
by hrasyid 3013 days ago
An API is a contract. HTML can be tweaked and become incompatible with your parser at the developer's whim.
3 comments

Oh luckily major APIs never change. /s
Not as easily as an HTML page
That 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.
Use Deep Learning to circumvent that.