Parse response and delegate the work to the client
parent
c5ec5ca2ee
commit
5acac97ae8
@ -0,0 +1,24 @@
|
||||
import os
|
||||
|
||||
from bs4 import BeautifulSoup as bs
|
||||
try:
|
||||
import deathbycaptcha
|
||||
except ImportError:
|
||||
deathbycaptcha = None
|
||||
|
||||
def parse_params(response):
|
||||
params = {
|
||||
"googlekey":"",
|
||||
"data-s": "",
|
||||
"pageurl": ""
|
||||
}
|
||||
soup = bs(response)
|
||||
|
||||
def solve(response):
|
||||
if deathbycaptcha is None:
|
||||
raise ImportError("The deathbycaptcha client is not installed")
|
||||
|
||||
client = deathbycaptcha.HttpClient(
|
||||
os.env.get("DBC_USER", "username"),
|
||||
os.env.get("DBC_PASS")
|
||||
)
|
Loading…
Reference in New Issue