Add support for Anti-Captcha

This commit is contained in:
Omar Roth
2019-11-09 14:18:19 -05:00
parent e3b2bcfd06
commit 71bc9eea28
4 changed files with 106 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ class HTTPClient < HTTP::Client
request.headers["accept-charset"] ||= "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
request.headers["accept"] ||= "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
request.headers["accept-language"] ||= "en-us,en;q=0.5"
request.headers["cookie"] = "#{(CONFIG.cookies.map { |c| "#{c.name}=#{c.value}" }).join("; ")}; #{request.headers["cookie"]?}"
end
super