-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unable to Crawl JS Dependent Sites #3
Comments
Are those phone numbers linked? i.e. If you view the source, does it have an href="tel:1234567890"? Currently, only linked phones/emails are supported, but I do plan to eventually add support to search the entire page for anything that looks like a phone/email, linked or not. |
It is not formatted like that. Uses br tags. Code for phone looks like this on the webpage: ` Email code: ` |
Unfortunately the crawler doesn't support scraping for plaintext phones/emails yet, although that is on the to-do list. For now it has to be an actual tel or mailto link. As for that .cfm link, since .cfm isn't added to the whitelist, it's treating it as an unsupported filetype. I'll go ahead and add it, but you should be able to put that in as the original scraping URL as a workaround. Is that what you tried and did it still not work? |
After debugging, the crawler is unable to view the webpage because it requires JavaScript. As such it would appear this site (and any site like it) is unsupported. I may add a fix for this in the future if it becomes common enough, but I'll need to deep dive it a bit. This is all the HTML the crawler gets to see:
|
Reopening since the OP stated that it successfully scraped emails from another site, but not the phone numbers. I'm assuming it's because the phone numbers on the other site (not hamradio) were in plaintext, but I will give the OP a chance to respond on the off-chance there's something else going on here. OP, can you provide the URL that "Captures about half the email addresses on a given webpage, but never captures phone numbers"? Or at least a snippet of the source code? |
No reply. Closing as everything presented in this issue is not supported. |
Reopening as, since this is a website with proper links, etc. in the HTML, it should be supported. There is no timeline for fixing this issue, but it is officially on the agenda. |
Ran this scraper exactly as it was created, only modified path from logs to a .txt in a Windows folder. Captures about half the email addresses on a given webpage, but never captures phone numbers. Running code against an entire website, not just a single webpage. Error seems to occur even when I run it against a single webpage with multiple phone numbers listed.
Windows 10, python 3.8, pyCharm.
Please note - I'm a newbie to python, so it's possible the error is on my end.
Edit: Ran scraper against this link because it has lots of phone/email: https://www.hamradio.com/contact.cfm
Result:
`Crawling https://www.hamradio.com/contact.cfm
Emails:
Phone Numbers:
Process finished with exit code 0`
The text was updated successfully, but these errors were encountered: