parsing - How can I parse HTML from a url for a logged in user -


suppose logged-in youtube. see videos specific logged-in user account.

so, want parse html of youtbe page video ids of current logged-in user in browser.

i tried jsoup parses html of page if no user logged-in.

hope got query...!!! solution ?

i tried jsoup parses html of page if no user logged-in.

you have tell jsoup login youtube. more importantly, have store eventual cookie(s) provided youtube , reuse them web request it.

once logged in, jsoup able parse html of youtube page video ids of current logged-in user.

here interesting article describing how login website jsoup. article comes example login github.

however, write down here whole process. read article full details.


what need?

  • a browser developer tool enabled
  • the form data used when login process starts
  • the required cookies

how process?

  • open private browsing window.
    this window ensures don't have cookies set.

  • fire developer tool bar.
    the toolbar gives login form details , exchanges between browser , youtube during whole login process.

  • tell browser navigate youtube login page.
    this step permit identify first steps of login process.

  • login manually , see browser do.
    this step allows identify login exchanges (http headers, cookies etc)

  • make jsoup replicate actions performed browser.
    let jsoup same browser actions (send headers, store cookies, follow redirects etc) .

see also:


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -