Android Question Httpjob multiple requests

Discussion in 'Android Questions' started by stratus, Jul 27, 2015.

  1. stratus

    stratus Active Member Licensed User

    The scenario is the following.
    I have from 1 to 10 webpages that i want to parse because i want to find a specific element from every page.
    If i have 1 webpage using Httpjob i manage to parse the page and find the element,but if i have more of 1 pages i do not find the way to parse one by one.
    Sorry for my bad english
    PS The number of the webpages is not constant every time
  2. DonManfred

    DonManfred Expert Licensed User

    - create a global list and store the urls to call in it
    - get the first item from the list and do a httputils2 job to download the data.
    - In job done you now analize the data you got...
    - remove the first item from the global list
    - get the first item from the list (if there are still items)
    - call the url and download the data... Again back to JobDone
  3. stratus

    stratus Active Member Licensed User

    Thanks it is working
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    lemonisdead and DonManfred like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice