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 6377293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:51:09+00:00 2026-05-25T01:51:09+00:00

Sorry if this is a dumb question, but I have absolutely no idea how

  • 0

Sorry if this is a dumb question, but I have absolutely no idea how to use Scrapy. I don’t want to create a Scrapy crawler (or w/e), I want to incorporate it into my existing code. I’ve looked at the docs, but I found them a bit confusing.

What I need to do is, get links from a list on the site. I just need an example to better understand it. Also, is it possible to have a for loop to do something with each list item? They are ordered like

<ul>
  <li>example</li>
</ul>

Thanks!

  • 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-05-25T01:51:10+00:00Added an answer on May 25, 2026 at 1:51 am

    You might want to consider BeautifulSoup, which is great for parsing HTML/XML, their documentation is quite helpful as well. Getting the links would be something like:

    import httplib2
    from BeautifulSoup import BeautifulSoup, SoupStrainer
    
    http = httplib2.Http()
    status, response = http.request('http://www.nytimes.com')
    
    for link in BeautifulSoup(response, parseOnlyThese=SoupStrainer('a')):
        if link.has_key('href'):
            print link['href']
    

    SoupStrainer removes the need to parse the entire thing when all you’re after are the links.

    EDIT: Just saw that you need to use Scrapy. I’m afraid I’ve not used it, but try looking at the official documentation, it looks like they have what you might be after.

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

Sidebar

Related Questions

sorry this is probably a dumb question, but I want to make the background
Sorry if this is a dumb question. I don't ever have to write anything
Sorry if this is a dumb question but im creating a filter class that
Sorry if this is a dumb question, but it is possible to store, and
This might be a dumb question. Sorry if it is. But Im working on
Sorry if this is a dumb question but for the life of me I
Sorry if this seems like a dumb question but I am just learning bash
Sorry if this has been asked before or it's a really dumb question, but
Sorry for the dumb question, but... I'm moving from VB to C# and this
Ok sorry this might seem like a dumb question but I cannot figure this

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.