Jeremy Roussak via curl-users
2021-04-15 18:29:24 UTC
First post here - inexperienced curl user!
Mac, Catalina.
I have an AppleScript which uses âdo shell scriptâ to run curl and then fiddles with the returned html. Itâs been working perfectly well for quite a while but over the last couple of weeks has been failing with âerror code 1020â. I get the same error if I run curl in Terminal. But if I paste the URL into a browser, the page loads fine.
The URL is âhttps://www.e-infin.com/uk/item/3999/sony_alpha_a7r_iv_mirrorless_digital_camera_body_only <https://www.e-infin.com/uk/item/3999/sony_alpha_a7r_iv_mirrorless_digital_camera_body_only>â but other URLs into that site behave in the same way.
I assume theyâve changed something to prevent scraping; my needs are just to look at the prices of a few items once a week, so it shouldnât upset them too much.
Does curl have options which would make it appear to be Safari/Chrome/Firefox/other? Iâve tried âuser-agent but it made no difference. Any ideas gratefully received.
Jeremy
Jeremy Roussak
Photography: jbr.is
Mac, Catalina.
I have an AppleScript which uses âdo shell scriptâ to run curl and then fiddles with the returned html. Itâs been working perfectly well for quite a while but over the last couple of weeks has been failing with âerror code 1020â. I get the same error if I run curl in Terminal. But if I paste the URL into a browser, the page loads fine.
The URL is âhttps://www.e-infin.com/uk/item/3999/sony_alpha_a7r_iv_mirrorless_digital_camera_body_only <https://www.e-infin.com/uk/item/3999/sony_alpha_a7r_iv_mirrorless_digital_camera_body_only>â but other URLs into that site behave in the same way.
I assume theyâve changed something to prevent scraping; my needs are just to look at the prices of a few items once a week, so it shouldnât upset them too much.
Does curl have options which would make it appear to be Safari/Chrome/Firefox/other? Iâve tried âuser-agent but it made no difference. Any ideas gratefully received.
Jeremy
Jeremy Roussak
Photography: jbr.is