dramaticcat@sh.itjust.works to Lemmy Shitpost@lemmy.world · 10 months agoChad scrapersh.itjust.worksimagemessage-square93fedilinkarrow-up1978arrow-down129
arrow-up1949arrow-down1imageChad scrapersh.itjust.worksdramaticcat@sh.itjust.works to Lemmy Shitpost@lemmy.world · 10 months agomessage-square93fedilink
minus-squareLemmesee@lemm.eelinkfedilinkarrow-up4·10 months agoUsing Selenium for this is probably overkill. You might be better off sending direct HTTP requests with your form data. This way you don’t actually have to spin up an entire browser to perform that simple operation for you. That said, if it works - it works!
minus-squarekattenluik@feddit.nllinkfedilinkarrow-up2·10 months agoI’m guessing forms like this have CSRF protection, so you’d probably have to obtain that token and hope they don’t make a new one on every request.
Using Selenium for this is probably overkill. You might be better off sending direct HTTP requests with your form data. This way you don’t actually have to spin up an entire browser to perform that simple operation for you.
That said, if it works - it works!
I’m guessing forms like this have CSRF protection, so you’d probably have to obtain that token and hope they don’t make a new one on every request.