Giter VIP home page Giter VIP logo

niebot's Introduction

NIEBot

A tool to help Barcelonian people get various immigration-related appointments via the Cita previa process.

Notice: This project is now on hiatus.

This is because, from my experience and that of others, the appointment booking process has greatly improved.

This bot no longer works. I do have a private build that does, however I am deciding not to release it, as doing so at this point in time will do more harm than good. I am well aware that some people have used my code for profit. In the past, this was a moot subject as many appointment sellers already had their own bots. Now that the site has anti-bot protections, releasing a bot that bypasses the spanish government's bot protection is only likely to make things as bad as when I first released this tool.

Requirements

  1. A Windows or Linux PC.
  • You MIGHT be able to get this running on macOS, and I will do my best to make sure it works there, but I do not have a Mac that I can just test this on, therefore I cannot support it.
  1. Java 11, either OpenJDK or Oracle will work well.
  2. A decent internet connection.

Instructions

  1. Install Java 11. You can get the latest version from Oracle here
  2. Run the application.
  3. Use the top choice box to set the appointment type you're looking for.
  4. Fill in the details. Make sure the notification option you set works for you.
  5. Click OK and sit tight. The application will download a special version of Firefox known as GeckoDriver. You'll be able to see the application working in realtime in a special browser window. Keep this window open (you can minimize it if you like) and keep an eye/ear out for the notification you picked.
  6. Once you see/hear the notification you picked, go back into the app's browser window, fill out the last of the details (a CAPTCHA and a 2FA code), and you now have your appointment.

Legal

  1. This app is shared under the GPLv3 license. It is open source software, and is free to download. I would highly recommend only getting the application and updates from this repository.
  2. Any attempts to use this application code or portions thereof to attack any Spanish government websites are hereby outright condemed by the author of this application. Just don't do it.
  3. The selling of the appointments that can be obtained via this application is illegal and is not supported by the author. This tool is intended to help individuals who are having a difficult time obtaining these appointments for themselves.

Changelog

  • 1.0 (12/03/22) - Initial Release
  • 1.2 (26/04/22) - Google Chrome support added, is now the recommended browser. Adapted to comply with the new protections of the site.
  • 1.3 (30/09/22) - Manual process for downloading Gecko/Chrome drivers is added for security reasons, modified to adapt to site changes

niebot's People

Contributors

afft-520 avatar batchproc avatar lulingar 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

niebot's Issues

Does not build on macOS: Could not resolve dependency

I think this is a great project, I've also suffered through trying to book NIE appointments.
I know you said you don't have a Mac to test with, but I thought you might want to see the error I got trying to build.
It's been many years since I've written Java, so didn't even know how to build this.
Anywho, here's what I did:

brew install maven
mvn install

[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.eugc:NIEBot-Public >-----------------------
[INFO] Building NIEBot-Public 0.1-ALPHA
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
...
Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.5.0/jna-platform-5.5.0.jar (2.7 MB at 149 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.387 s
[INFO] Finished at: 2022-06-06T11:16:53-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project NIEBot-Public: Could not resolve dependencies for project com.eugc:NIEBot-Public:jar:0.1-ALPHA: Could not find artifact unknown.binary:AbsoluteLayout:jar:SNAPSHOT in unknown-jars-temp-repo (file:/Users/chris/Projects/hack/NIEBot/lib) -> [Help 1]

I'm too java-clueless to understand what is't missing, sorry I can't fix it and submit a PR.

Choose Location

Can choosing location be included in the code or can the code be used include a certain location?

No ability to choose location

Although I can see why this tool would work well for certain appointments, it cannot be used for TIE collection appointments, since these have to be done at the specific comisaria where you TIE is ready to be collected.

Would it be possible to add a restriction to a specific comisaria? It doesn't even need to list all of them in the program, simply a text field that lets the GeckoDriver choose the first location with that text in its name.

Problem when Running the Bot

Hi AFFT-520,

When the bot is running, I can see it opens the government's Cita Previa page, it chooses Barcelona, but it does not choose the Tramite I set up in the initial form. Then the bot immediately relaunch the initial Cita Previa page, chooses Barcelona, and then relaunch... It never goes to the page where to input personal information such as NIE, name, nationality etc.

I also have noticed that the initial form does not have a textbox to input nationality, which is required for tramites such as toma de huella, TIE issurance, etc. So, I guess that even if the bot goes to the page that request personal information, it would still not run properly.

Could you please help on this?

Thank you very much!

Unable to download chromedrivers

image
I get this error after starting the application. As you can tell, the google-chrome command doesn't exist.
I've tried to manually download the drivers and put them in the folder but it doesn't work.

I'm running the application in a (Debian) Linux container on ChromeOS

P.S. on macOS doesn't work either.

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.