How To install the YouTube Media Converter "Anti-Captcha Plugin"

Requirements:


Installation Instructions

  1. Ensure that the YouTube Media Converter is uploaded to your server.

  2. Unzip the Anti-Captcha Plugin and upload the "AntiCaptcha" folder to the "/vendors" directory.

  3. Open "/vendors/AntiCaptcha/lib/Config.php" and configure the constant values as per the code comments.
    • _ANTICAPTCHA_LICENSE_KEY is the license key given to you at the time of Plugin purchase
    • _ANTI_CAPTCHA_API_KEY is your Anti-Captcha.com API key
    • _APP_PROXY_IP is your Server IP
    • _APP_PROXY_PORT is "3128" (for Squid Proxy)

  4. Locate and open "ackey.sql" in "/vendors/AntiCaptcha/docs".
    • Ensure that the Database login info is set correctly in "/lib/Config.php", i.e.:
    • Open the Database indicated by the _DATABASE value and Execute the SQL code in "ackey.sql" via phpMyAdmin (or a similar MySQL/MariaDB UI) or the MySQL command line

  5. Edit the following values in "/lib/Config.php":
    • Ensure _WEBSITE_DOMAIN is set to, e.g., "yoursite.com"!
    • Remove the "//" that prepends 'AntiCaptcha' in the $_plugins array, i.e.:
    • Set _ENABLE_IP_ROTATION to false
    • Set _ENABLE_SEARCH_SCRAPING to true

  6. Set permissions of the "/vendors/AntiCaptcha/storage" folder to CHMOD 0777, and Set permissions of "/vendors/AntiCaptcha/cronjob.php" to CHMOD 0755.

  7. Create the YouTube "login" cookie file.

    • Install this Chrome Extension in your Browser: "Get Cookies.txt"

      • To avoid invalidating the resulting cookie file by inadvertently logging out of YouTube (which will "break" your website), consider installing this extension in a little-used browser like Opera instead of Chrome.
      • In Opera, you must install this extension (to enable the installation of Chrome Extensions in Opera) before installing the Chrome "Get Cookies.txt" extension.
    • Navigate to YouTube.com in your Browser and log out if you are currently logged in.

    • Login in to your YouTube Account. 

    • Important!!: Never sign out of YouTube, in this Browser, because this will invalidate the "login" cookie file (and subsequently "break" your website)!

    • Click on the "Get Cookies.txt" Extension icon, Click the "Export" button, and Save the cookie file to your PC, i.e.:

    • Open this file, Copy all file content, Paste it into "/vendors/AntiCaptcha/storage/youtube_cookie.txt", and Save "youtube_cookie.txt".

  8. Create a Cron job (via SSH or aaPanel) and schedule it to run Every Minute.

    • Via SSH:

      • Type the following command in console: 

        • crontab -e
      • Arrow down to the bottom and Add this line:

        • */1 * * * * php -q /FULL/PATH/TO/vendors/AntiCaptcha/cronjob.php >> /FULL/PATH/TO/vendors/AntiCaptcha/storage/cron.log
      • Type Ctrl-X and then "Y" to save the file.

    • Via aaPanel:

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Features & Benefits

You'll spend less money, long term. No more monthly expense for Proxy IPs (for the purpose...

Introductory Promotion / Discount!

For New Customers Only! I do recommend starting with a Lifetime License, after reviewing the...

Powered by WHMCompleteSolution