voshawn / broadway-lottery

A chrome extension to automatically apply to Broadway Lotteries
2 stars 2 forks source link

Lucky Seat not working #6

Open voshawn opened 4 years ago

voshawn commented 4 years ago

CONTEXT

The Lucky Seat scraper was written a while ago. It looks like they have changed their website so now our scraper no longer works.

It requires a user account. Given that we have multiple profiles now, we would also want to change the session between applying.

Given that the multiple profiles feature opens all the tabs at once, we may need to figure a way to apply before we change the session and open the other tab.

AutomateAaron commented 4 years ago

For the moment, maybe just getting lucky seat to work with whatever the user is logged on might be easier.

Also, this may be a bit of a paradigm switch, but maybe this project would be better suited as a Selenium project? This would allow us to leverage control of the browser from outside the browser rather than having to handle sessions and what not from within the browser. Just a thought. 🤷

voshawn commented 4 years ago

@AaronNBrock re: selenium, that's a good idea, however my concern is that selenium won't be able to bypass the Captchas. I haven't really tried but we could test it.

AutomateAaron commented 4 years ago

@voshawn it can't bypass the Captchas in an automated fashion, but it does allow you to have user intervention. I.e. If you can pause the test until the Captcha is entered & allow the user to do it themself.

Another alternative is something like https://www.deathbycaptcha.com/ or similar service to farm it out to humans somewhere. (I've personally never used this.)

voshawn commented 4 years ago

ohhh that would be really cool!

AutomateAaron commented 4 years ago

I'll create a repo & add you as a collaborator. I'll see if I can get a POC working, but it will probably be a little while since I'm pretty busy with work leading up to the holidays.

AutomateAaron commented 4 years ago

So, to follow up on this a little bit, I made this repo however I ran into an insta-ban from lottery.broadway.com, in theory they shouldn't be able to detect it but I may need to do something like what they suggest in this SO question.

But, it seems like this may be a good deal more difficult than originally hoped.

voshawn commented 4 years ago

Haha that's amazing. Challenge accepted.