Giter VIP home page Giter VIP logo

dedinc / emunium Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 3.0 8.44 MB

A Python module for automating interactions to mimic human behavior in standalone apps or browsers when using Selenium, Pyppeteer, or Playwright. Provides utilities to programmatically move the mouse cursor, click on page elements, type text, and scroll as if performed by a human user.

Home Page: https://pypi.org/project/emunium/

License: MIT License

Python 100.00%
bypass-antibots bypass-bot-detection-systems captcha-bypass human-interactions selenium-automation selenium-test simulation web-testing puppeteer pyppeteer

emunium's Introduction

DedInc's streak

Languages and Tools:

DedInc
DedInc's Wakatime Stats

Connect with me:

Telegram VKontakte

emunium's People

Contributors

dedinc avatar ps428 avatar

Stargazers

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

Watchers

 avatar

Forkers

antizhyk ps428

emunium's Issues

Mouse speed controller

How i can set the mouse speed, its is a good idea to have random time to dor mouse moves to make it human

Random button area to click

Hello, its possible to randomize the cordinates inside the element? If the clicks goes always on certer its easy to detect

I tried script and it doesnt work

I tried the script for playwright and selenium in the examples you show and it doesnt work. It goes to wrong element or raises ImageNotFoundException due to confidence being to low.

Click on a random area within the button based on size and not the center

Hi, I would like to change a part of the code so that instead of randomizing the location of the click based on the center, we use the size of the button and click in a random area within it. I found where the changes should be made but I'm having a logic problem, if anyone could help me I would be grateful. Here is the part of the code that I believe we should change.
def get_center(element):
coords = driver.execute_script("""
var element = arguments[0];
var rect = element.getBoundingClientRect();
var centerX = rect.left + rect.width / 2 + window.scrollX;
var centerY = rect.top + rect.height / 2 + (window.scrollY || window.pageYOffset) + (screen.height - window.innerHeight) / 1.5;

        return {x: centerX, y: centerY};
    """, element)

    return {
        'x': coords['x'],
        'y': coords['y']
    }

def find_and_move(element, click=True, offset_x=random.uniform(0.0, 1.5), offset_y=random.uniform(0.0, 1.5)):
    center = get_center(element)
    **target_x, target_y = round(center['x'] + offset_x), round(center['y'] + offset_y)**

Playwright not working

Playwright does not work even in the example code:

AttributeError: 'NoneType' object has no attribute 'left'

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.