Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL allowed domain issue blocking onsite links #31

Closed
tyler-foxworthy opened this issue Apr 30, 2014 · 1 comment
Closed

URL allowed domain issue blocking onsite links #31

tyler-foxworthy opened this issue Apr 30, 2014 · 1 comment

Comments

@tyler-foxworthy
Copy link

Hi. I'm trying to gather basic description and address information for some business pages on Yahoo finance. I was able to use the Portia interface to successfully pull metadata for pages such as http://biz.yahoo.com/ic/42/42034.html. However, when i go to the main page where links to all businesses in the same domain are listed http://biz.yahoo.com/ic/774_cl_all.html all of the business links are highlighted in red. I believe this is because they are listed under another domain http://us.rd.yahoo.com/finance/industry/front/industrynav/423/*http://biz.yahoo.com/ic/423.html . I've tried writing a regex for the allowed urls but I believe the fact that they are not on the .biz domain is preventing them from being scooped up by the link extractor. Any thoughts on a fix?

@duendex
Copy link
Contributor

duendex commented Apr 30, 2014

You are right, they are in red because only in-domain links will be followed. Please do this:
on the spider configuration go to Start urls and add http://us.rd.yahoo.com
That should work for you, let me know how it goes.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants