Chào mừng!

Bằng cách đăng ký với chúng tôi, bạn sẽ có thể thảo luận, chia sẻ và nhắn tin riêng tư với các thành viên khác trong cộng đồng của chúng tôi.

Đăng ký ngay!
  • Chào Khách,
    Bạn cần liên hệ với admin ??? ZALO & TELEGRAM

Hướng Dẫn Chương trình crawl ảnh gái xinh đơn giản

Tham gia
8/2/19
Bài viết
147
Lượt Thích
509
Coins
1,560
Target: gaixinhchonloc.com
Thư viện: bs4, requests
Source code :
Python:
import requests
from bs4 import BeautifulSoup
r = requests.get("https://gaixinhchonloc.com/")
content = BeautifulSoup(r.text, "html.parser")
targetContent = content.find_all("div","gridphoto")
for item in targetContent:
    imgLink = item["data-photo-high"]
    fileName = imgLink.split('/')[-1]
    img = requests.get(imgLink, stream=True).content
    open(fileName, "wb").write(img)
Đây là chương trình đơn giản chỉ có thể crawl những ảnh được load khi load trang xong :((
Hướng dẫn :
https://sgorki.me/crawl-anh-su-dung-requests-va-beautifulsoup/
 
Top Bottom
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock
No Thanks