1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to go through hundreds of pages?

Discussion in 'HTML & JavaScript' started by Paintballer32, Apr 10, 2009.

  1. Paintballer32

    Paintballer32 Newbie

    Joined:
    Apr 2, 2009
    Messages:
    43
    Likes Received:
    4
    Hey guys i was looking at the site below and it has a next and previous button now i know how to make it navigate to another page with the button what i dont know how to do is make it go through hundreds of pages like they do cause that would take way to much time? is there a script out there that can go to the next page in its folder or sitemap.txt without me doing it manually for all pages?

    http://funnyjunk.com/youtube/4435/Jizz+In+My+Pants/

    there is a link and above teh video is next and previous but there are like 5000 pages of videos it scrolls through
     
  2. drdankmendez

    drdankmendez Junior Member

    Joined:
    May 30, 2008
    Messages:
    194
    Likes Received:
    316
    Location:
    In front of my computer
    I am really sure what you are trying to accomplish on each page, but you can access the pages without the title of the video in the url. For instance, the URL you provided:

    Code:
    http://funnyjunk.com/youtube/4435/Jizz+In+My+Pants/ 
    Can be accessed as well with:
    Code:
    http://funnyjunk.com/youtube/4435/
    You could setup a php script to go through each page using cURL by just setting up a counter and while() statement. You could frame the site and use javascript to navigate the frame to the next pages.

    There are a really a ton of options you can use, but really I can't reccomend somethign without knowing what it is you are trying to accomplish.
     
  3. Paintballer32

    Paintballer32 Newbie

    Joined:
    Apr 2, 2009
    Messages:
    43
    Likes Received:
    4
    ok if i have 100's of pages i dont want to go threw them linking the next button to the next video instead just have a script or whatever to go to the next video in a folder/folders i selected.