hrbrmstr / cfhttr

:construction_worker: Workaround Cloudflare Anti-DDoS Protection
9 stars 1 forks source link

Not working on a site and unix FS specific code #3

Open Delmortis opened 5 years ago

Delmortis commented 5 years ago

2 things:

1) There's the following code in the package: writeLines(cf_code, "/tmp/a.html") This fails when there's no /tmp/ folder, like with most Windows computers. Is this line needed or is it a hold-over from debugging?

2) The code doesn't seem to work with: http://data.arr-software.org/?lon_coord=152.88972&lat_coord=-26.91333&ARFParameters=on&TemporalPatterns=on

hrbrmstr commented 5 years ago

thx. i'll try to get some time to poke at their changed code. the original was built by request (I've personally never had the need to use it apart from helping someone with the example link in the README).

Delmortis commented 5 years ago

I've been trying to debug it myself and I'm not really sure what the problem is. The calculated value seems correct but it just doesn't seem to get the cf_clearance cookie back. Someone's python code that does something similar does however seem to work. https://github.com/pavlodvornikov/aiocfscrape