android - How to Find The Link for JSON Data of a Certain Website -


i finished tutorial on how develop android application retrieves updated posts blog using json data.

the link json data used retrieve posts, blog name ending "/api/get_recent_summary"

how can find link of json data different websites?

for example website time magazine http://time.com

the quickest , easiest way use google developer tools in google chrome.

1st go google developer tools.

2nd click on "network" tab.

3rd click on xhr sub-tab. xhr(xmlhttprequest)

if site uses json listed under xhr sub-tab. can search through different return objects using preview sub-sub-tab.

here link website step step how on finding json files http://www.gregreda.com/2015/02/15/web-scraping-finding-the-api/

although above way easiest not stable way of getting info need. many sites make changes return data without notice. break app...

i think looking api(application programming interface). web apis return json or xml. should start searching api documentation specific site want json data from. example documentation sites have public api feeds github api or youtub api. many of these require authentication in order desired json response documentation should show how it.

using legitimate web api stable way go. meaning app has less chance of randomly breaking of time due feed changes, url changes... hope helps!


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -