Fetch Delta using Direct API Calls
✓ Published0🌍 Public
Aadiamaan92
Last edited Jan 16, 2022
Created on Jan 16, 2022
This example shows how to incrementally fetch newly published speech titles from the Narendra Modi website using direct API calls. It paginates through the site’s `loadspeeche` endpoint, parsing the returned HTML with `lxml`’s `etree` and XPath queries. The script stops fetching pages once it encounters a title matching the previously saved latest speech, avoiding redundant downloads. It then calls `get_article_data(tree)` on new entries, demonstrating a simple delta-extraction pattern for tracking content updates over time.
AI-generated description