Friendly, easy, lightweight, self-hostable CAPTCHA service. https://captcheck.netsyms.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

scrapetexts.php 840B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * A simple script to scrape text CAPTCHAs from an online service.
  4. *
  5. * Set your email address and the number of CAPTCHAs to download.
  6. *
  7. * For security, this script will by default terminate itself, so comment out
  8. * the die() command if you want to use it.
  9. */
  10. die("Access denied.");
  11. require __DIR__ . '/required.php';
  12. header('Content-Type: text/plain');
  13. $email = "changeme@example.com";
  14. $rows = 20;
  15. $url = "http://api.textcaptcha.com/$email.json";
  16. for ($i = 0; $i < $rows; $i++) {
  17. $data = json_decode(file_get_contents($url), TRUE);
  18. $database->insert('access_questions', ["acqtext" => $data['q']]);
  19. $id = $database->id();
  20. foreach ($data['a'] as $a) {
  21. $database->insert('access_answers', ["acqid" => $id, "acahash" => $a]);
  22. }
  23. echo ".";
  24. ob_flush();
  25. sleep(1);
  26. }
  27. echo "\ndone\n";