Hack Forums
[Help] How to scrape an image url protected by cloudFlare using python? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Help] How to scrape an image url protected by cloudFlare using python? (/showthread.php?tid=6105481)



How to scrape an image url protected by cloudFlare using python? - heybohy - Aug 27, 2020

Hi. I do not know English. and what I outlined below is from google translatešŸ˜–

As the title says, How to scrape an image url protected by cloudFlare using python?

Because my account is not eligible to insert links. So I will put the link here: (replace: * to ://)
http*imageinstant.com/data/images/17696/603689/001.jpg

Code
import cfscrape

target_url = "The link I noted above"
scraper = cfscrape.create_scraper()
f = open(fileName,'wb')
f.write(scraper.get(target_url).content)
f.close()

I tried using cfscrape but returned error 403. Anyone have a fix please just spear. Tks!


RE: How to scrape an image url protected by cloudFlare using python? - xHeaven - Aug 27, 2020

This might help you out: https://github.com/VeNoMouS/cloudscraper


RE: How to scrape an image url protected by cloudFlare using python? - heybohy - Aug 27, 2020

(Aug 27, 2020 02:43 AM)xHeaven Wrote:  This might help you out: https*github.com/VeNoMouS/cloudscraper

it doesn't work bro. I tried searching more about cloudscraper and saw an article on stackoverflow: https*stackoverflow.com/questions/60838471/bypass-recaptcha-using-cloudscraper-cfscrape-sellenium-in-python
Perhaps there is no hope for a vague guy. Help me!