Code Monkey home page Code Monkey logo

anmeldung-berlin's Introduction

anmeldung-berlin

This app will find and book an Anmeldung appointment automatically for you in Berlin.

My Contribution

You can run docker-compose docker-compose up

Quickstart

Configuration

vi config.json
Variable Default Description
debug false Run a headful browser
name "Max Mustermann" Your full name
email "[email protected]" Your email
phone "0176 55555555" Your phone number
takeSurvey true Whether or not to take the Amt's survey
note "" An optional note to include with your booking
service "Anmeldung einer Wohnung" The name of the appointment service from ./constants.json
allLocations true Include all service locations*
locations ["Bürgeramt Rathaus Neukölln", "Bürgeramt Rathaus Neukölln - Vorzugsterminen"] Specific service locations to search from ./constants.json
earliestDate "1970-01-01 GMT" Book an appointment no earlier than this date
latestDate "2069-01-01 GMT" Book an appointment no later than this date
earliestTime "05:00 GMT" Book an appointment no earlier than this time
latestTime "18:00 GMT" Book an appointment no later than this time
concurrency 3 How many Chromium pages to run at the same time
waitSeconds 120 How long to wait between booking attempts
coolOffSeconds 600 How long to wait if blocked for too many attempts

*allLocations will override locations

With Docker (recommended)

# Build
docker build -t anmeldung-berlin .
# Get an appointment
docker run \
    -v $(pwd)/output:/home/myuser/output \
    anmeldung-berlin

Local on Mac OS

# Install
npm i
# Get an appointment
NODE_OPTIONS="--max_old_space_size=30000 --max-http-header-size=80000" \
    npm start

Output

The ./output directory will save a picture of the appointment confirmation page and a JSON file with appointment info. Check your email inbox (and spam folder) for the appointment confirmation.

Known Issues

  • No verification is made of successful booking. If you click submit, you'll get a 'Success!!!' but double check the booking in the case of bad form inputs.
  • There is a Captcha service that can be triggered, which is not handled.

Other Services' Appointments

Two services are available (Anmeldung and Change of Passport for EU Blue Card), and this project can be easily extended to include other services' appointments by adding service names and numbers to ./constants.json.

Contributing

If you're planning to contribute to the project, install dev dependencies and use eslint and prettier for linting and formatting, respectively.

npm i --include=dev
npx eslint --fix index.js # caution: this will modify index.js in place
npx prettier -w index.js # caution: this will modify index.js in place

anmeldung-berlin's People

Contributors

ccomkhj avatar solidneo avatar

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.