Skip to content

Commit a9f100c

Browse files
refactor examples
1 parent a0282a7 commit a9f100c

20 files changed

+10
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/coordinates.js renamed to examples/coordinates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const APIKEY = process.env.APIKEY
55
const solver = new Captcha.Solver(APIKEY);
66

77

8-
const imageBase64 = fs.readFileSync("./tests/media/hCaptchaImage.jpg", "base64")
8+
const imageBase64 = fs.readFileSync("./media/hCaptchaImage.jpg", "base64")
99

1010
solver.coordinates({
1111
body: imageBase64,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/geetest.js renamed to examples/geetest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const solver = new Captcha.Solver(APIKEY);
1010
* You need to find the queries that makes the captcha on the page to API.
1111
* Then you need to make request to this API and get new `challenge`.
1212
*
13-
* For page https://rucaptcha.com/demo/geetest, api address is https://rucaptcha.com/api/v1/captcha-demo/gee-test/init-params?t=${t}
13+
* For page https://2captcha.com/demo/geetest, api address is https://2captcha.com/api/v1/captcha-demo/gee-test/init-params?t=${t}
1414
* Also note that when make request to API, the request uses the dynamic parameter `t`
1515
*
1616
* You can read more about sending GeeTest here https://2captcha.com/2captcha-api#solving_geetest, or here https://2captcha.com/p/geetest
17-
* In this example I solve GeeTest from page https://2captcha.com/demo/geetest
17+
* In this example you can see how to solve GeeTest on the page https://2captcha.com/demo/geetest
1818
*
1919
*/
2020

2121
const t = new Date().getTime()
22-
// below i make a request to get a new `challenge`.
22+
// below is a request to get a new `challenge`.
2323
const response = await fetch(`https://2captcha.com/api/v1/captcha-demo/gee-test/init-params?t=${t}`)
2424
const data = await response.json()
2525

File renamed without changes.

0 commit comments

Comments
 (0)