PW auth through python + selenium, promo activation and gifts sending via java script
- project directory should include file passwords file formatted as:
- (line1) login
- (line2) password
- (line3) login
- (line4) password
- etc.
- project directory should include file pins file formatted as:
- PROMO123
- PROMO456
- this code makes auth on Perfect World (ru official) per Selenium during reading login and password from passwords.txt
- then it activates promos from pins.txt
- then it activates script to send all gifts to personages reproduced in variable allowed in scripts/library.js
- it also creates log formatted as
^(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})\s*(\S*)\s*-\s*(\S*)\s*-\s*(.*)$