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

download links not present on page #38

Open
cnjr2 opened this issue Jun 21, 2015 · 1 comment
Open

download links not present on page #38

cnjr2 opened this issue Jun 21, 2015 · 1 comment

Comments

@cnjr2
Copy link
Contributor

cnjr2 commented Jun 21, 2015

It would be great to be able to download content from a page for which there are no direct links.

For example, at a given webpage (e.g. www.paper.com) there are some links to low resolution images:

<img src="/foo/carousel/bar/image1.jpg" class="figure"></img>
<img src="/foo/carousel/bar/image2.jpg" class="figure"></img>
<img src="/foo/carousel/bar/image3.jpg" class="figure"></img>

I want to get the high resolution version, and I know their location:

www.paper.com/foo/images/bar/image1.jpg
www.paper.com/foo/images/bar/image2.jpg
www.paper.com/foo/images/bar/image3.jpg

I would like to be able to replace carousel by images (with XPath replace() for example) and then just follow the link to download the image:

"figure": {
  "selector": "replace(//img[@class='figure'], 'carousel', 'images')",
  "download": true
}
@tarrow
Copy link
Contributor

tarrow commented Sep 23, 2016

I think this is a sub-issue of #16.

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