You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Scrapy to deep copy some content on one page, to crawl the content and download the images in that content and update the image original value accordingly.
Is it possible to modify the value through Selector?
Or must I download the image first and update the "original" value separately? any better solution?
Another use case:
In some pages, some content are hidden by some CSS setting ( style="display:none"), or we want to do some preprocessing for some content, we will need to inspect the content and update it.
The text was updated successfully, but these errors were encountered:
Selectors are meant to address parts of a document, not to transform it.
Although some elementary things are possible,
like striping namespaces and running a regex over a string result,
transformations are out of the scope of this project for now
(and will remain so in the near future for practical reasons).
You should look into xslt or some similar technology.
I am using Scrapy to deep copy some content on one page, to crawl the content and download the images in that content and update the image original value accordingly.
For example I have:
I need to download the image and update the new image original value(for example to mysite.com/1/1.png), then save the content.
what I will have finally is:
and image on my disk.
Is it possible to modify the value through Selector?
Or must I download the image first and update the "original" value separately? any better solution?
Another use case:
In some pages, some content are hidden by some CSS setting ( style="display:none"), or we want to do some preprocessing for some content, we will need to inspect the content and update it.
The text was updated successfully, but these errors were encountered: