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

I want to list all the urls within a given page using hquery and save them. #49

Open
ash-25 opened this issue Jul 3, 2019 · 1 comment

Comments

@ash-25
Copy link

ash-25 commented Jul 3, 2019

Hello,
I am trying to get all the url links in my website using hquery.
i am doing $doc = hQuery::fromUrl(https://mywebsite.com). any inputs how to process further to get all the available urls from my website.

thank you for your time

@duzun
Copy link
Owner

duzun commented Jul 3, 2019

Well, there is a way, not documented though:

$info = $doc->_info();
var_export($info['idx_attr']['href']);
var_export($info['idx_attr']['src']);

I'll think about adding some documented method for this usecase.

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

No branches or pull requests

2 participants