This project contains a Dart application that attempts to log in to an Instagram account using a username and password. The application checks whether the provided username and password are valid.
To run this application, you need to install the following libraries:
- Install the Dart SDK on your computer by following the Dart installation guide.
- Clone this repository or download it as a ZIP:
git clone https://github.com/username/repository-name.git
- Navigate to the project directory:
cd repository-name - Install the necessary packages:
dart pub get
-
Fill in the
userandpasswordvariables in themainfunction:String user = "username"; // Your username String password = "password"; // Your password
-
Run the application:
dart run
-
The application will check if the username and password are correct and print a message based on the outcome:
- If the username and password match: "User and password matching"
- Otherwise: "No password or user are correct"
- The
isExistsfunction attempts to log in to Instagram using the provided username and password. - The
_getCookieValuefunction retrieves the value of a specific cookie from the incoming cookies. - The
mainfunction is the entry point of the application and performs the login check.
If you would like to contribute, please create a pull request. All contributions and feedback are welcome.