mvinoba / MinervaBot

Um bot que usa Selenium para automatizar a renovação online de livros das bibliotecas da UFRJ
GNU General Public License v3.0
0 stars 0 forks source link

Use Headless Chrome #1

Closed brunelli closed 6 years ago

brunelli commented 6 years ago

Using Chrome in headless mode so it won't open a new window when the script is ran.

Since everything is happening "behind the curtains", now it prints the final result to the standard output – it can be used to automatically create a cron job for the day the book must be renewed, for example.

mvinoba commented 6 years ago

Printing out the result is really nice, thank you!

mvinoba commented 6 years ago

@brunelli, just a ps.: the two spaces indentation only caught my attention after the merge, so I've just made a commit myself to fix it, sorry for not reviewing it properly before. =)

brunelli commented 6 years ago

No problem. There was no indentation on the code, so I didn't know what style to use. In hindsight, 4 spaces would've been a better choice, hahaha.