mercredi 29 mars 2017

How can I get data from diferents pages with javascripts buttons?

I have the following HTML:

<div class="pagination pagination-centered">
    <ul>
              <li class="active">
          <a class="page" data-page="1" href="javascript:void(0)">
            1          </a>
        </li>
              <li >
          <a class="page" data-page="2" href="javascript:void(0)">
            2          </a>
        </li>
              <li >
          <a class="page" data-page="3" href="javascript:void(0)">
            3          </a>
        </li>
              <li >
          <a class="page" data-page="4" href="javascript:void(0)">
            4          </a>
        </li>
              <li >
          <a class="page" data-page="5" href="javascript:void(0)">
            5          </a>
        </li>
              <li >
          <a class="page" data-page="6" href="javascript:void(0)">
            6          </a>
        </li>
              <li >
          <a class="page" data-page="7" href="javascript:void(0)">
            7          </a>
        </li>
              <li >
          <a class="page" data-page="8" href="javascript:void(0)">
            8          </a>
        </li>
              <li class="threeDots">
          <a class="page" data-page="..." href="javascript:void(0)">
            ...          </a>
        </li>
              <li >
          <a class="page" data-page="20" href="javascript:void(0)">
            20          </a>
        </li>
          </ul>
  </div>

When I click in this buttons I go to something like this http://ift.tt/2ntXkMk (x = number of the button) I use this:

Document doc = Jsoup.connect("http://ift.tt/2o9zx7E").get();
But i get always the first page HTML. How i can "click" or extract information about this pages? I dont know so much about PHP but i thing this page use it to change pages. Sorry for the expresion. English is not my native language and this is my first question, I am a beginner.


Aucun commentaire:

Enregistrer un commentaire