Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* chip fotowelt
- 1732 9 #Akt des Monats
- 1564 438 #Akt
- 1540 100 click all time
- 1539 year
- 1538 month
- 1537 week
- 1731 comments
- 1716 50 recommend
- */
- // fwelt (1716, 50); // recommend
- fwelt(1538,50); // comments
- function fwelt(tag,i) {
- // tag=1564,i=438,
- for (var stack=0,pages={};i;i--){
- var r=new XMLHttpRequest();
- r.open("GET","http://fotowelt.chip.de/index.cfm?pid="+tag+"&page="+i);
- r.onreadystatechange=function(){
- if (this.readyState==4 && this.status==200) {
- var a=this.responseText.match(/\d+\/\d+/gim).map(function(v){return "http://fotowelt.chip.de/imgserver/communityimages/"+v+"/1280x.jpg"});
- //console.log(a.join("\n"));
- console.log(this.page,--stack,a.length);
- post_imgur (a,function(){});
- pages[this.page]=a;
- }
- if (this.readyState==4 && this.status!=200) {stack--;"failed: " + this.page}
- }
- stack++;
- r.page=i,r.tag=tag,r.t1=new Date();
- r.send();
- }
- pages["key"]="ez",pages["title"]="ephotozine";pages["tag"]=tag,pages["t1"]=new Date();
- }
- /* upload imgur */
- function post_imgur(a,callback) {
- var r=new XMLHttpRequest();
- r.open("POST","http://176.34.162.148/jabry/imgur1.asp?u=&b=",true);
- //r.open("POST","http://notebook1.lan:8000/jabry/imgur1.asp?u=&b=",true);
- r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- r.onreadystatechange=function(){if (this.readyState==4 && this.status==200) callback&&callback.call(this.responseText); }
- r.send("u=" + a.join(","));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement