Jump to content
Sign in to follow this  
sampy

WinHTTP - IQOption Login

Recommended Posts

sampy

Hello everybody!

I want to make a script for IQ Option Autologin:

https://eu.iqoption.com/it

I have try to find something but i can get only the header and i cant login in this site

I have find also a API for login with Python:

Quote

 

# -*- coding: utf-8 -*-
"""Module for IQ Option http login resource."""

from src.api.iqoption.http.resource import Resource

class Login(Resource):
    """Class for IQ option login resource."""
    # pylint: disable=too-few-public-methods

    url = "login"

    def _post(self, data=None, headers=None):
        """Send get request for IQ Option API login http resource.

        :returns: The instace of :class:`requests.Response`.
        """
        return self.send_http_request("POST", data=data, headers=headers)

    def __call__(self, username, password):
        """Method to get IQ Option API login http request.

        :param str username: The username of a IQ Option server.
        :param str password: The password of a IQ Option server.

        :returns: The instance of :class:`requests.Response`.
        """
        data = {"email": username,
                "password": password}

        return self._post(data=data)

 

Somebody know how works?

Thanks everybody and happy coding ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.