This script automates the process of paraphrasing articles using undetectable.ai website. It splits the input article into 250-word chunks and paraphrases each chunk. The paraphrased content is then saved to a file.
git clone https://github.com/obaskly/AiTextDetectionBypass.git
cd AiTextDetectionBypass
pip install -r requirements.txt
pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2 google-api-python-client
Prepare your article in a text file (e.g., article.txt).
. go to https://console.cloud.google.com
. create new project
. click on 'api and services'
. type "Gmail API" and select it from the results.
. Click the Enable button.
. In the left-hand menu, go to APIs & Services > OAuth consent screen.
. Choose External
. Add the necessary scopes: https://www.googleapis.com/auth/gmail.readonly
. Go to the Test users section.
. Add the Gmail address you want to use for paraphrasing.
Click Save and Continue.
. Go to APIs & Services > Credentials.
. Click Create Credentials > OAuth 2.0 Client IDs.
. Choose Desktop App as the application type.
. Download the credentials.json file once it’s created and put it in the same directory as the script.
python gui.py
Select the writing purpose, readability level, and provide the path to your article.
If you don't want to use the GUI mode, go to paraphraser.py and uncomment the last part and run it.
The script will save the paraphrased content to paraphrased.txt. Sit back and relax while the script paraphrases your article!