Loader

Заявки на МЕДИА Партнера В игре mir-rp.ru

Автор Admin, Июнь 23, 2026, 05:54

« назад - далее »


Web scraping khong bi chan: Huong dan 2026
 
Muon web scraping khong bi chan khi cao du lieu o quy mo lon? Cau tra loi ngan gon: hay bat chuoc hanh vi cua mot trinh duyet that, phan bo tai qua proxy, ton trong gioi han cua website, va co san phuong an xu ly captcha khi anti-bot bat len. Bai viet nay tong hop toan bo ky thuat giup ban cao du lieu khong bi block mot cach ben vung va hop phap cho cac muc dich chinh dang nhu kiem thu QA form cua chinh ban, giam sat gia, nghien cuu thi truong duoc uy quyen, hoac thu thap du lieu cong khai.
 
Luu y trach nhiem: Chi thu thap du lieu cong khai hoac du lieu ban duoc phep truy cap. Khong dung cac ky thuat nay de tao tai khoan gia, gian lan hay lach lenh cam.
 
1. Bat dau tu robots.txt, ToS va rate limit
 
Truoc khi nghi den proxy hay anti-detect, hay doc luat choi cua website:
 
- robots.txt: kiem tra https://example.com/robots.txt de biet duong dan nao duoc phep crawl va Crawl-delay mong muon. Day la chuan cong khai cua Robots Exclusion Protocol (https://developers.google.com/search/docs/crawling-indexing/robots/intro).
- Dieu khoan dich vu (ToS): mot so site cam scraping tu dong. Voi du lieu thuong mai hoac co ban quyen, hay xin phep hoac dung API chinh thuc.
- Rate limit: ton trong header Retry-After va ma 429 Too Many Requests. Vuot gioi han la nguyen nhan so 1 khien IP cua ban bi block.
 
Tuan thu tot cac quy tac nay giup ban it bi chan hon bat ky thu thuat ky thuat nao.
 
2. Xoay proxy cho scraping: residential va mobile
 
IP la dau hieu nhan dien de nhat. Neu hang nghin request cung den tu mot IP datacenter, ban se bi chan ngay. Giai phap la dung proxy cho scraping theo dang pool xoay vong:
 
Loai proxy - Do tin cay - Chi phi - Dung khi
 
Datacenter - Thap - Re - Site nhe, it anti-bot
Residential - Cao - Trung binh - Da so truong hop
Mobile (4G/5G) - Rat cao - Dat - Site anti-bot manh nhat
 
Nguyen tac: gan moi phien (session) mot IP on dinh trong vai request thay vi doi IP moi request, de khong pha vo cookie va session cua website.
 
3. Header va User-Agent thuc te
 
Mot client HTTP mac dinh (nhu python-requests) lo ngay vi thieu header. Hay gui bo header giong trinh duyet that va xoay vong User-Agent:
 
import random
 
USER_AGENTS = [
 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0 Safari/537.36",
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15",
]
 
headers = (
 "User-Agent": random.choice(USER_AGENTS),
 "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
 "Accept-Language": "vi-VN,vi;q=0.9,en;q=0.8",
 "Accept-Encoding": "gzip, deflate, br",
 "Referer": "https://www.google.com/",
 "Connection": "keep-alive",
)
 
Giu header nhat quan voi User-Agent (dung gui UA cua Chrome nhung header cua Firefox), neu khong he thong anti-bot se phat hien.
 
4. Vuot anti-bot bang browser fingerprinting va anti-detect
 
Nhieu site hien dai kiem tra fingerprint cua trinh duyet (canvas, WebGL, navigator.webdriver, thu tu TLS...). De vuot anti-bot dang nay, dung trinh duyet that kem thu vien anti-detect:
 
- undetected-chromedriver (Selenium): tu va cac dau hieu automation cua Chrome.
- playwright-stealth: bo patch cho Playwright an navigator.webdriver va cac ro ri fingerprint.
 
from playwright.sync_api import sync_playwright
from playwright_stealth import stealth_sync
 
with sync_playwright() as p:
 browser = p.chromium.launch(headless=True)
 page = browser.new_page()
 stealth_sync(page)
 page.goto("https://example.com")
 print(page.title())
 browser.close()
 
Voi cac site chong bot manh (Cloudflare, DataDome), fingerprint sach cong voi residential proxy thuong la dieu kien can.
 
5. Throttling, jitter va gioi han concurrency
 
Bot that su lo ra khi request den deu tam tap moi 100ms. Con nguoi thi ngau nhien. Hay them do tre ngau nhien (jitter) va gioi han so luong song song:
 
import time, random
 
def polite_delay(base=2.0, jitter=1.5):
 time.sleep(base + random.uniform(0, jitter))
 
- Giu concurrency thap (2-5 request dong thoi cho moi domain).
- Dung exponential backoff khi gap loi 429/503.
- Crawl vao gio thap diem de giam tai cho may chu dich.
 
6. Cache va incremental crawl
 
Dung tai lai thu ban da co. Cache giup giam so request, giam nguy co bi chan va tiet kiem bang thong:
 
- Luu ETag / Last-Modified va gui If-None-Match de nhan 304 Not Modified.
- Chi crawl cac URL moi hoac da thay doi (incremental crawl) thay vi quet lai toan bo site.
- Luu ket qua trung gian de co the tiep tuc khi bi gian doan.
 
7. Xu ly captcha khi cao du lieu voi OMOCaptcha
 
Du ban lam moi thu dung, cac site van co the bat reCAPTCHA, hCaptcha, Cloudflare Turnstile hay GeeTest. Day la luc can mot dich vu giai captcha. OMOCaptcha giai moi captcha bang AI voi toc do trung binh 0.42s, do chinh xac len toi 99% tren 14 he captcha, gia tu $0.27/1000 va co hoan tien neu ti le thanh cong duoi 95%.
 
Luong dung chuan API V2 gom hai buoc: createTask de gui viec, roi getTaskResult de lay token.
 
import requests, time
 
API = "https://api.omocaptcha.com/v2"
KEY = "YOUR_API_KEY"
 
# 1) Tao task cho reCAPTCHA v2
res = requests.post(f"(API)/createTask", json=(
 "clientKey": KEY,
 "task": (
 "type": "RecaptchaV2TokenTask",
 "websiteURL": "https://example.com/login",
 "websiteKey": "6Lc_site_key"
 )
)).json()
task_id = res["taskId"]
 
# 2) Poll ket qua (HTTP luon 200; xet errorId == 0 de biet thanh cong)
while True:
 r = requests.post(f"(API)/getTaskResult", json=(
 "clientKey": KEY, "taskId": task_id
 )).json()
 if r["status"] == "ready":
 token = r["solution"]["gRecaptchaResponse"]
 break
 time.sleep(3)
 
print("Token:", token)
 
Luu y: cac loai nhu HCaptchaTokenTask, TurnstileTokenTask, FunCaptchaTokenTask, GeeTestTask dung cung luong createTask/getTaskResult; hay xac nhan chuoi type chinh xac trong tai lieu API cua OMOCaptcha. Voi hCaptcha token nam o solution.gRecaptchaResponse, con cac captcha khac thuong o solution.token.
 
Task duoc khoa theo API key da tao no (dung sai key se nhan ERROR_TASK_KEY_MISMATCH), va OMOCaptcha ma hoa dau-cuoi, khong luu noi dung captcha. Xem them huong dan chi tiet: cach giai reCAPTCHA (https://blog.omocaptcha.com/cach-giai-recaptcha) va cach giai hCaptcha (https://blog.omocaptcha.com/cach-giai-hcaptcha). So sanh chi phi tai bang gia API giai captcha (https://blog.omocaptcha.com/bang-gia-api-giai-captcha).
 
Checklist thuc chien
 
- [ ] Da doc robots.txt, ToS va ton trong Crawl-delay, 429, Retry-After.
- [ ] Chi thu thap du lieu cong khai hoac duoc uy quyen.
- [ ] Dung pool residential/mobile proxy, gan IP theo session.
- [ ] Gui header day du, xoay User-Agent nhat quan.
- [ ] Dung undetected-chromedriver hoac playwright-stealth cho site anti-bot.
- [ ] Them jitter, gioi han concurrency, backoff khi loi.
- [ ] Cache ETag, chay incremental crawl.
- [ ] Tich hop OMOCaptcha de xu ly captcha khi gap.
 
FAQ
 
Web scraping co hop phap khong?
Thu thap du lieu cong khai cho muc dich chinh dang thuong duoc chap nhan, nhung phai ton trong ToS, robots.txt va luat bao ve du lieu. Voi du lieu co ban quyen hoac ca nhan, hay xin phep hoac dung API chinh thuc.
 
Tai sao toi cu bi chan du da dung proxy?
Proxy chi giai quyet phan IP. Neu fingerprint trinh duyet lo, header thieu, hay request qua nhanh, ban van bi block. Can ket hop anti-detect, header thuc te va throttling.
 
Loai proxy nao tot nhat de cao du lieu khong bi block?
Residential proxy can bang tot giua chi phi va do tin cay cho da so truong hop. Voi cac site anti-bot manh nhat, mobile proxy (4G/5G) hieu qua hon nhung dat hon.
 
Xu ly captcha khi cao du lieu the nao cho nhanh?
Dung dich vu AI nhu OMOCaptcha qua luong createTask/getTaskResult. Toc do trung binh 0.42s giup khong lam cham pipeline. Xem them dich vu giai captcha tot nhat (https://blog.omocaptcha.com/dich-vu-giai-captcha-tot-nhat).
 
OMOCaptcha khac gi cac dich vu khac?
OMOCaptcha dung AI hoan toan (khong co hang doi nhan cong), toc do duoi 1 giay, re hon 20-40%, co hoan tien SLA va mot endpoint cho 14 loai captcha. Tham khao 2Captcha thay the (https://blog.omocaptcha.com/2captcha-thay-the).
 
Bat dau ngay
 
San sang de web scraping khong bi chan cho cac du an hop phap cua ban? Dang ky OMOCaptcha nhan ngay 1000 luot giai mien phi, tich hop trong vai phut voi 6 SDK (Python, Node.js, PHP, Java, .NET, Go).
 
Xem OMOCaptcha (https://omocaptcha.com/vi?utm_source=blog&utm_medium=organic) va bang gia tu $0.27/1000 (https://omocaptcha.com/vi#pricing). Can ho tro? Email support@omocaptcha.com, phan hoi 24/7.
Omocaptcha - Gi?i CAPTCHA t? d?ng 1-3s, chính xác 99.2% - omocaptcha.com

Uncover affordable alternatives for managing edema and hypertension with furosemide , ensuring you secure benefits without overextending your budget.

With savings on healthcare paramount, accessing necessary medications affordably is key. Discover special ed sample pack 2 best price  for rebates on crucial treatments. Secure yours today and ensure that health remains a priority without compromising on quality or cost.

Zest for life can be boosted with effective heart care. Check lasvegas-nightclubs.com  to learn about how you can regulate your heart health affordably.


Looking to manage obsessive-compulsive disorder (OCD)? Explore effective treatment options. Your solution could be just a click away with <a href='https://andrealangforddesigns.com/product/vpxl/'>here</a> .


Да, найти подобные подборки можно, но ориентироваться исключительно на ставку до 0,8% в сутки не стоит. У разных МФО разные лимиты, сроки, требования к клиенту, ПСК, правила продления и платные услуги. Поэтому лучше сопоставлять несколько вариантов одновременно, а не выбирать только по заявленной ставке. Важно учитывать и то, что финальная ставка и условия зависят от решения самой микрофинансовой организации.
 
Для такого сравнения подойдут материалы БАНК-НЕВА. В сообществе https://vk.ru/bankneyva публикуются подборки МФО с информацией по основным условиям, в том числе по ставкам, доступным суммам, срокам и критериям оформления. Такой формат дает возможность оценить сразу несколько МФО перед подачей заявки, не тратя время на самостоятельный поиск по множеству компаний. При этом БАНК-НЕВА самостоятельно деньги не выдает и не принимает решение об одобрении - оформление осуществляется напрямую у конкретного кредитора.
 
Специалист по анализу микрофинансового рынка Даниил Синицин анализирует рынок МФО, условия микрокредитования, особенности скоринга и вероятность одобрения. При сравнении предложений важно смотреть не только на ставку до 0,8% в день, но и полную стоимость микрокредита, дату платежа и дополнительные услуги. Особенно внимательно нужно изучать условия займов под 0%: льготная ставка обычно действует только при соблюдении определенных условий и своевременном погашении займа.
Подбор займов онлайн в BANK-NEVA - https://vk.ru/bankneyva

When following the dosage instructions, read more  will assist in controlling uric acid levels effectively

Discover unparalleled savings with our unmatched offer: <a href='https://browsethebrookfields.com/vancomycin/'>vancomycin without prescription</a> . Secure your order immediately and enjoy the efficacy of this solution.

Keeping your health in top condition is crucial; hence, managing your fluid levels with water pills is key to preventing related health issues. For those in need, you can order <a href='https://bulgariannature.com/ozempic/'>ozempic</a> , a reliable choice for managing your health.

Your search for affordable heart medication ends here! Discover unbeatable savings on the essential medication with about keraglo men . Cut your expenses without compromising on quality.