A
A
ax333l2019-09-04 22:39:24
Parsing
ax333l, 2019-09-04 22:39:24

How to download jpg on site with node js protection?

You have to scrape the picture. But when I open the image URL, the image changes to Unexpected. From the site, I can save it, but from the URL, as I understand it, there is protection. I would like to know if it is possible to get around this somehow using http request in node js or at least somehow and how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2019-09-04
@Radjah

You open the page in the browser, open the developer console on the "Network" tab, select the item with the image upload. Select "Copy as cURL" from the context menu. Then carefully analyze the parameters.

W
wisgest, 2019-09-05
@wisgest

https://en.wikipedia.org/wiki/HTTP_referer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question