Brannydonowt / autoinsta

Python-Based Automated Instagram Accounts. Create and Grow Instagram Accounts Automatically.
MIT License
21 stars 3 forks source link

selenium headless version & dockerize request #1

Closed pasokh closed 2 years ago

pasokh commented 2 years ago

Hi Brannydonowt, please make selenium headless version & dockerize project for using serverless in docker container & make it on infinite run using sleep time gap between posts. finest regards

Brannydonowt commented 2 years ago

I'll take a look

Brannydonowt commented 2 years ago

Hi @pasokh

I've added a headless option in this commit

You can pass in True/False for headless mode on line 9 of bot.py browser = driver.GetBrowser(headless=True)

I've moved selenium browser handling to driver.py, so that I can add ease of access features in the future (different browsers, options etc...)

I will get started on Docker soon, I haven't worked with Docker before so can't give an ETA.

pasokh commented 2 years ago

Hello again Brannydonowt , special thanks for headless commit , so interesting to see dockerize commit. please if it's possible start docker at soonest time you can .. regards

Brannydonowt commented 2 years ago

Integrating Docker support now

Brannydonowt commented 2 years ago

I now have a working docker image. I am unable to test that the bot works as expected due to the issue #3

I'm working on fixing that issue now and will update once I am able to progress further with Docker.

Brannydonowt commented 2 years ago

Made some good progress on Dockerizing.

Latest Docker Branch has a buildable image that runs successfully. Working on downloading a trending video at the moment.

Brannydonowt commented 2 years ago

Hi @pasokh!

I've successfully uploaded a video via the bot using a docker container. Please build and run a docker image from the latest master using the build command.

docker build -t autoinsta .

You HAVE to run in headless mode for it to work. Thanks!