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

Crawler not catching all links? #17

Open
huglester opened this issue Apr 3, 2015 · 5 comments
Open

Crawler not catching all links? #17

huglester opened this issue Apr 3, 2015 · 5 comments

Comments

@huglester
Copy link

For example, script won't find any childs here:

./vendor/bin/centipede run http://www.altevents.darbai.webas.lt/
200 http://www.altevents.darbai.webas.lt/

Why so? there are more links on that page. but it only checks the mainpage?

I have checked the UrlExtractor class, the extract() method receives valid html,
but DOMDocument does not extract the links. Maybe we should use symfony/dom-crawler ?

Thanks!

@umpirsky
Copy link
Owner

umpirsky commented Jun 1, 2015

@huglester Given url is under construction atm. Can you give fresh example please? Thanks.

@huglester
Copy link
Author

@umpirsky please try now:)

@umpirsky
Copy link
Owner

umpirsky commented Jun 2, 2015

@huglester

selection_001

@huglester
Copy link
Author

Very strange. Have you tried pressing F5?

@umpirsky
Copy link
Owner

umpirsky commented Jun 2, 2015

@huglester Ctrl + F5 did the trick.

After commenting out https://github.com/umpirsky/centipede-crawler/blob/master/src/Centipede/Extractor/UrlExtractor.php#L13 I got:

PHP Warning:  DOMDocument::loadHTML(): AttValue: " expected in Entity
PHP Warning:  DOMDocument::loadHTML(): Couldn't find end of Start Tag meta in Entity

Looks like there is invalid html.

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

2 participants