We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Pages on a website

Options
Is there anyway of working out how many pages a website has without counting them individually?

Comments

  • DE_612183
    DE_612183 Posts: 3,740 Forumite
    Part of the Furniture 1,000 Posts Photogenic Name Dropper
    you could see if the site has a "site map"
  • Neil_Jones
    Neil_Jones Posts: 9,537 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Bowey123 said:
    Is there anyway of working out how many pages a website has without counting them individually?

    Without a site map probably not.
    But even then no guarantee the site map has everything on the website.

    So-called "dynamic" websites mean the number of pages on a website can theoretically be infinite.
  • wget is a free program to download web pages as files and can be used to fetch recursively following links, so you could instructed it to download the whole site, then count the files on your disk with dir /s

    Proud member of the wokerati, though I don't eat tofu.Home is where my books are.Solar PV 5.2kWp system, SE facing, >1% shading, installed March 2019.Mortgage free July 2023
  • PHK
    PHK Posts: 2,275 Forumite
    Eighth Anniversary 1,000 Posts Photogenic Name Dropper
    As @Neil_Jones hints , websites nowadays don't normally have a pre-defined number of pages for several reasons. 

    A page might scroll infinitely bringing in new (or old) content as it goes. 

    Pages may be generated on the fly based on what you've done previously, whether you're logged in, the time of day or numerous other conditions. 

    What look like pages might actually be an active element on the previous page. 

    Different parts of a site may be hosted on different servers. 

    The same page might exist on multiple servers to balance out load on the site. 

    And so on. 
  • wget is a free program to download web pages as files and can be used to fetch recursively following links, so you could instructed it to download the whole site, then count the files on your disk with dir /s

    There's a blast from my geek past. 

    Nerd practical joke - point wget  at bbc.co.uk to retrieve the entire site - on someone else's PC. 

    Oh how we laughed..... 
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.