Giter VIP home page Giter VIP logo

selenium-instagram-uploader's Introduction

selenium-instagram-uploader

Script to upload an image to instagram with desired text using browser and desktop automation. Currently only for linux. For windows you check this script.

Required libraries can be installed automatically by running requirements.py file but here is a list of individual requirements:

  • autokey
  • selenium python package
  • geckodriver or chromedriver (manual setup required)

selenium-instagram-uploader's People

Contributors

aapatre avatar ccozkan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

selenium-instagram-uploader's Issues

autokeyscript.py example

This file should be added to the scripts of autokey - how ?

It can be done by using Autokey main window. - where is this window ?

Save this script as select_image - i save script as select_image in main script folder.

import time

image_path = '/home/grek/PhpstormProjects/public/posts/5d16/0dac/'
image_name = '5d160dac11fea368827042'

keyboard.send_keys('<ctrl>+l')
keyboard.send_keys(image_path)

keyboard.send_keys('<enter>')
time.sleep(3)

#keyboard.send_keys('<ctrl>+f')
keyboard.send_keys(image_name)
keyboard.send_keys('<enter>')

I see script open selelect file browser but files is empty

this folder contain file

ls /home/grek/PhpstormProjects/public/posts/5d16/0dac/
5d160dac11fea368827042.jpg

and get error

python3 selenium-instagram-uploader.py 
[WDM] - Driver [/home/grek/.wdm/drivers/geckodriver/linux64/v0.28.0/geckodriver] found in cache
AutoKey must be running to use autokey-run.

org.freedesktop.DBus.Error.ServiceUnknown: The name org.autokey.Service was not provided by any .service files
Traceback (most recent call last):
  File "selenium-instagram-uploader.py", line 76, in <module>
    button[0].click()

Example usage please ...

python3 selenium-instagram-uploader.py 
Traceback (most recent call last):
  File "/home/grek/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver': 'geckodriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "selenium-instagram-uploader.py", line 11, in <module>
    driver = webdriver.Firefox(profile)
  File "/home/grek/.local/lib/python3.6/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
    self.service.start()
  File "/home/grek/.local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 83, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. 

Wrong Code

This thing Literally got my head scratched

you have said to save the script as image_select
Capture

but in main script you have given the command select_image
Capture1

it was impossible to get desired results from that code and i had spent hours tracking where was mistake ๐Ÿ˜ž . It turns out this was

So Please update the code

bug for login

% python3 main.py
Traceback (most recent call last):
File "main.py", line 37, in
button[0].click()
IndexError: list index out of range

Docker version

Hi can you have or can show example configiration for enviroment for this script ? i have problems to run in ubuntu 20-04.
I think docker (docker-compose) configuration will be best

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.