Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:58:49+00:00 2026-06-11T00:58:49+00:00

I have a Scrapy Crawler that crawls some guides from a forum. The forum

  • 0

I have a Scrapy Crawler that crawls some guides from a forum.
The forum that I’m trying to crawl the data has got a number of pages.
The problem is that I cannot extract the links that I want to because there aren’t specific classes or ids to select.
The url structure is like this one: http://www.guides.com/forums/forumdisplay.php?f=108&order=desc&page=1
Obviously I can change the number after desc&page=1 to 2, 3, 4 and so on but I would like to know what is the best choice to do this.
How can I accomplish that?

PS: This is the spider code
http://dpaste.com/hold/794794/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:58:51+00:00Added an answer on June 11, 2026 at 12:58 am

    I can’t seem to open the forum URL (always redirects me to another website), so here’s a best effort suggestion:

    If there are links to the other pages on the thread page, you can create a crawler rule to explicitly follow these links. Use a CrawlSpider for that:

    class GuideSpider(CrawlSpider):
        name = "Guide"
        allowed_domains = ['www.guides.com']
        start_urls = [
            "http://www.guides.com/forums/forumdisplay.php?f=108&order=desc&page=1",
        ]
    
        rules = [
            Rule(SgmlLinkExtractor(allow=("forumdisplay.php.*f=108.*page=",), callback='parse_item', follow=True)),
        ]
    
        def parse_item(self, response):
            # Your code
            ...
    

    The spider should automatically deduplicate requests, i.e. it won’t follow the same URL twice even if two pages link to it. If there are very similar URLs on the page with only one or two query arguments different (say, order=asc), you can specify deny=(...) in the Rule constructor to filter them out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have programmed a crawler to scrape information and data from a website
I have a Scrapy project that I want to use to scrape some websites.
'm trying to crawl some rows from CSV file using CSVFeedSpider The structure of
I just downloaded Scrapy (web crawler) on Windows 32 and have just created a
I have been using XPath with scrapy to extract text from html tags online,
I have been trying to get a simple spider to run with scrapy, but
I have a Scrapy project and I am trying to save the output items
Actually i am parsing some html pages by using scrapy, i have used xpath
This is the code for Spyder1 that I've been trying to write within Scrapy
We have a system written with scrapy to crawl a few websites. There are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.