Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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.call(this.responseText); }
- r.send("u=" + a.join(","));
- }
- /* fetch url */
- function get_url(url,callback) {
- var r=new XMLHttpRequest();
- r.open("GET",url,true);
- r.onreadystatechange=function(){
- if (this.readyState==4 && this.status==200) callback.call(this.responseText);
- }
- r.send();
- }
- Array.prototype.unique = function(){
- return this.filter(function(s, i, a){ return i == a.lastIndexOf(s); });
- }
- // fotoblur.com
- function fotoblur(tag,pages) {
- for (var stack=0,i=pages;i;i--,stack1++) get_url("http://www.fotoblur.com/gallery?filter="+tag+"&page="+i,function(v){
- var a=this.match(/\/imgs\/.*?\/sm_\d+.jpg/gim).join("\n").replace(/\/sm_/gim,"/").replace(/^(.*)$/gim,"http://www.fotoblur.com$1").split("\n");
- stack++;
- post_imgur(a,function(v) {console.log(this.toString(),--stack,--stack1,this.toString().split("\n").length)});
- });}
- function fotoblur2(tag,pages) {
- for (var stack=0,i=pages;i;i--,stack1++) get_url("http://www.fotoblur.com/categories/"+tag+"?filter=views&page="+i,function(v){
- var a=this.match(/\/imgs\/.*?\/sm_\d+.jpg/gim).join("\n").replace(/\/sm_/gim,"/").replace(/^(.*)$/gim,"http://www.fotoblur.com$1").split("\n");
- stack++;
- post_imgur(a,function(v) {console.log(this.toString(),--stack,--stack1,this.toString().split("\n").length)});
- });}
- var stack1=0;
- // fotoblur("votes",500);
- // fotoblur("views",500);
- // fotoblur("published",33);
- // fotoblur("features",101);
- // fotoblur("date",500);
- // fotoblur("favorites",5);
- // fotoblur("rising",5);
- //fotoblur2("landscape-photography",10);
- "Landscape,Portrait,Conceptual,People,Fine-Art,Street,Abstract,Architecture,Nature,Flower,General,Waterscape,Animal,Children,Cityscape,Macro,Digital-Manipulation,Urban,Outdoor,Artistic-Nude,Still-Life,Fashion,Travel,Bird,Night,Photojournalism,Glamour,Action,Interior,Insect,Concert,Event,Industrial,Plant,Sport,Humor,Automotive,Pet,Wedding,Digital-Darkroom,Vintage,Family,Food,Texture,Pattern,Studio,Advertising,Toy-Camera,Mature,Rural".split(",").forEach(function(v){fotoblur2(v+"-Photography",10);});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement