(Newbie) Xin chỉ giáo cách scrape tải image từ url protech by cloudflare
imnoob2127/08/20201327 lượt xem7 bình luận
Hello toàn thể ace cô dì chú bác. Em newbie vừa học python muốn viết tool download ảnh. Nhưng cục nỗi có mấy trang dùng cloudflare nên em đành bó tay.
Em đã thử hết cfscrape đến cloudscraper nhưng đều bị block:
[CODE]import random
import subprocess
import cloudscraper
import string
url = "http://imageinstant.com/data/images/17696/603689/001.jpg"
headers = {
'User-Agent': "Mozilla/5.0 (X11; U; SunOS sun4m; en-US; rv:1.4b) Gecko/20030517 Mozilla Firebird/0.6",
'Cache-Control': 'no-cache\
Bình luận
Đang tải...
Đang kiểm tra đăng nhập...
