Skip to main content

imbot for making a bot to control any website.

Project description

imbot

imbot for making a bot to control any website.

.. image:: https://travis-ci.com/byRo0t96/imbot.svg?branch=main

Installation

.. code::

pip install imbot

Usage

.. code:: python

from imbot import imbot

p1=imbot("<JSON_FILE_PATH>",<TIME_EVERY_OPERATION>)#Get information.
p1.run("<OPTION>","<DATA>") # Start imbot.
p1.end() #close.

.. code:: json { "url":"<YOUR_LINK>", "":{ "operations":[ { "type":"<FIND_ELEMENT_BY>", "code":"", "opt":"click" }, { "type":"<FIND_ELEMENT_BY>", "arg_code":"<ORDER_OF_IDENTIFIER_IN run(0,1,2....) FUNCTION>", "opt":"click" }, { "type":"<FIND_ELEMENT_BY>", "code":"", "opt":"put", "data":"THE_DATA_YOU_WANT_TO_ENTER" }, { "type":"<FIND_ELEMENT_BY>", "arg_code":"<ORDER_OF_IDENTIFIER_IN run(0,1,2....) FUNCTION>", "opt":"put", "arg_data":"ORDER_OF_DATA_YOU_WANT_TO_ENTER_IN run(0,1,2...) FUNCTION" } ] } }

Example

.. code:: python

from imbot import imbot

# Example:1
#Open github website, login:
p1=imbot("github.json")
p1.run("login",'<USERNAME>','<PASSWORD>')
p1.end()

# Example:2
#Open github website, login & go to your profile:
p2=imbot("github.json")
p2.run("login",'<USERNAME>','<PASSWORD>')
p2.run("profile")
p2.end()

# Example:3
#Open github website, login & delete a repository:
p3=imbot("github.json")
p3.run("login",'<USERNAME>','<PASSWORD>')
p3.run("repository_delete",'<USERNAME>/<REPOSITORY_NAME>','<PASSWORD>')
p3.end()

# Example:4
#Open github website, login and delete a list of repositories:
p4=imbot("github.json",5)
p4.run("login",'<USERNAME>','<PASSWORD>')
f=open("<REPOSITORIES_LIST.txt>","r").read().split('\n')#type of list is "<USERNAME>/<REPOSITORY_NAME>" in any line
for x in f:
    p4.run("repository_delete",x,'<PASSWORD>')
p4.end()

.. image:: screenshot/screenshot_1.png

.. begin changelog

Changelog

0.1.0

  • New build.

0.0.1

  • First public release.

.. end changelog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imbot-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

imbot-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page