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!
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:
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.