Skip to content

Go crawler to place some Shawarma orders ๐Ÿ˜‹๐Ÿฅ™

License

Notifications You must be signed in to change notification settings

marianozunino/goashot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Go Ashot

This project is just a POC to learn about Go Rod.

I also wanted to learn about Go HTML Template and combine it with Gin.

All of this glue together with Uber FX DI framework.

To make it more fun and useful, I decided to use it to crawl Rappi website to place some orders.

Yeah, we are a bunch of lazy people at the office, and we love Shawarmas ๐Ÿฅ™.

How to use it

Build the project:

make build

This will output two binaries, one for the server and another one for the crawler.

Run it:

./bin/app
#or
./bin/crawler

It will start a web server on port 5000, so you can access it on http://localhost:5000.

How it works

The project is divided in two parts:

  • The web server, which is just a simple web server that serves some Go HTML templates. With this web server, you can CRUD orders

  • The crawler, which read the orders that were created on the web server, and place them on Rappi. Rappi has a 2FA, so it will take to the login page, and it will wait for you to complete the login process. Once you are logged in, it will place the orders.

About

Go crawler to place some Shawarma orders ๐Ÿ˜‹๐Ÿฅ™

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published