Skip to content

Commit

Permalink
- Minor edits to params of captcha
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim S <[email protected]>
  • Loading branch information
poplers24 committed Aug 28, 2024
1 parent b0d3370 commit a441ebb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ result = solver.tencent(app_id="197326679",
Use this method to solve DataDome captcha.
```python
result = solver.datadome(captcha_url="https://geo.captcha-delivery.com/captcha/?initialCid=...",
pageurl="https://dd.burak.fr/",
pageurl="https://mysite.com/page/with/datadome",
param1=..., ...)
```

Expand Down
4 changes: 2 additions & 2 deletions examples/datadome.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

try:
result = solver.datadome(
captcha_url="https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAZirHgKBVrxwAsVuKlQ%3D%3D&cid=6UMFxKqnfKi2eFFrE1qXfCKp63PJZG8paEmhrdvBTCjLMsxEBnwN1ll6DMj3zgknV12vVMEGIGlz_PwXqp3KInLKNssKELeGAiA30KzBLiZkbsANFUppr57BQ~_~zqk7&referer=https%3A%2F%2Fdd.burak.fr%2F&hash=47C8DCE2BC1F24F1810FD12D144E2A&t=fe&s=39587&e=bec7a70727d6522cc2763179059323aa7d2faac7420c5da690fffd096a893c12",
pageurl="https://dd.burak.fr/",
captcha_url="https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAZirHgKBVrxwAsVuKlQ%3D%3D&c",
pageurl="https://mysite.com/page/with/datadome",
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
proxy={
'type': 'HTTP',
Expand Down
4 changes: 2 additions & 2 deletions tests/datadome_test.py → tests/test_datadome.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class DatadomeTest(AbstractTest):
def test_all_params(self):
params = {
'captcha_url': 'https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAZirHgKBVrxwAsVuKlQ%3D%3D&c',
'pageurl': 'https://dd.burak.fr/',
'pageurl': 'https://mysite.com/page/with/datadome',
'userAgent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
'proxy': {'type': 'HTTP', 'uri': 'login:password@IP_address:PORT'}
}

sends = {
'method': 'datadome',
'captcha_url': 'https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAZirHgKBVrxwAsVuKlQ%3D%3D&c',

This comment has been minimized.

Copy link
@dzmitry-duboyski

dzmitry-duboyski Aug 28, 2024

Contributor

please add an ellipsis at the end, like this: 'captcha_url': 'https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAZirHgKBVrxwAsVuKlQ%3D%3D&c...',

'pageurl': 'https://dd.burak.fr/',
'pageurl': 'https://mysite.com/page/with/datadome',
'userAgent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36',
'proxy': 'login:password@IP_address:PORT',
'proxytype': 'HTTP'
Expand Down

0 comments on commit a441ebb

Please sign in to comment.