szkkteam / bot-house-find Goto Github PK
View Code? Open in Web Editor NEWSimple bot to scrap the latest published properites on willhaben and collect them based on criterias
Simple bot to scrap the latest published properites on willhaben and collect them based on criterias
Hi,
thanks for your great work. i tried your bot local on my windows bash integration but it was not working for me.
i added a debug to get the content of the response:
2022-04-17 08:16:45.010 | DEBUG | __main__:get_url:73 - Opening URL: 'https://www.willhaben.at/iad/immobilien/grundstuecke/steiermark/weiz?areaId=6&page=24&rows=100&view='. 2022-04-17 08:16:45.099 | DEBUG | __main__:get_url:76 - response: 'b'<html><head><script type="text/javascript"><!--\nfunction leastFactor(n) {\n if (isNaN(n) || !isFinite(n)) return NaN;\n if (typeof phantom !== \'undefined\') return \'phantom\';\n if (typeof module !== \'undefined\' && module.exports) return \'node\';\n if (n==0) return 0;\n if (n%1 || n*n<2) return 1;\n if (n%2==0) return 2;\n if (n%3==0) return 3;\n if (n%5==0) return 5;\n var m=Math.sqrt(n);\n for (var i=7;i<=m;i+=30) {\n if (n%i==0) return i;\n if (n%(i+4)==0) return i+4;\n if (n%(i+6)==0) return i+6;\n if (n%(i+10)==0) return i+10;\n if (n%(i+12)==0) return i+12;\n if (n%(i+16)==0) return i+16;\n if (n%(i+22)==0) return i+22;\n if (n%(i+24)==0) return i+24;\n }\n return n;\n}\nfunction go() {\n var p=1878456693082; var s=2143963864; var n;\nif ((s >> 7) & 1)/* 120886108*\n*/p+=/*\nelse p-=\n*/58914173*\t8;/*\nelse p-=\n*/else /* 120886108*\n*/p-= 134317395*/*\n*13;\n*/8; if ((s >> 2) & 1)/*\n*13;\n*/p+=\t195515769*/* 120886108*\n*/5;\telse \np-=\t476627213*/* 120886108*\n*/3;/*\np+= */if ((s >> 2) & 1)/*\nelse p-=\n*/p+=/*\nelse p-=\n*/32463657*/*\np+= */5;\telse /*\n*13;\n*/p-=\n4216346* 3;/* 120886108*\n*/if ((s >> 7) & 1)p+=\n152042247*/*\np+= */8; else p-=120237981* 8;/* 120886108*\n*/if ((s >> 14) & 1)/*\n*13;\n*/p+=/*\np+= */7637260* 17;/*\nelse p-=\n*/else \np-= 33654345*\n15;/*\n*13;\n*/ p-=862262196;\n n=leastFactor(p);\n{ document.cookie="duplexdataiad="+n+"*"+p/n+":"+s+":1517372968:1;path=/;";\n document.location.reload(true); }\n}\n//--></script></head>\n<body onload="go()">\nLoading...\n</body>\n</html>\n'' ''
It looks like that they have a added a bot check.
Do you also experience this issue or is this maybe a problem because of my environment?
kind regards,
Max
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.