Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.46 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.46 KB

FTC MERGED README Awesome

📚 How the Program Works

This Program uses nodejs https API to request Midjourney's Webpage, pull out a section of the webpage and format it into JSON. It uses the fs API to download images directly from Midjourney's server locally and store the prompt for each image in an array. The code picks 4 random image.

Using Pupeteer's Package, the program loads twitter login page to inputs username and password. Twitter randomly asks for number or the twitter account's username after email entry, when it observes unusual activities. A section of the code looks out for that and provides the number any time it does.

Once logged in, the program selects the downloaded image files, it also clicks around to type in the Tweet text and also the ALT for each image. The program tweets, then deletes the downloaded image files and exits.

🔦 In Action (Images)


Puppeteer launched and on the login webflow page.




Pupetter Page.type method fill in username and mail page form.




Twitter sometimes notices unusual activities, the program handles it.




Program chooses file and adds alt text.

IT TWEETS

✍️ Get Started

  • Clone the repository down to your local machine
  • Install dependencies with npm
npm install
  • Create a (.env) file and fill in with login details(sample below)
MAIL="abcd.efg@gmail.com"

KEY="password-or-key"

PHONE="08112345678"

⚠️ The phone number should follow the country's local format, excluding the country code's prefix.

👥 Contribute

Contributions are always welcome!

License

CC0