Category: web
09/12/09 12:08 - 68ºF - ID#49751
Robots and Men
This one was very simple. It basically loops through, visits the pages, checks to see if there is a photo on the page and then saves the photo based on the category if it exists. Sometimes the robots are much more elaborate. It wasn't even worth writing a class because the code required wasn't more than could go in one method.
There are two photo examples down below the code are of au naturel vintage men, although they are no more offensive than the statue of david. Don't scroll if you don't want to see it.
<?
$dir = 'xpics/';
if(!is_dir($dir)){
mkdir($dir);
}
foreach(range(1, 30423) as $x){
//grab html
$html = file_get_contents('http://SOMEWEBSITE/postcontent/showfull.php?photo='.$x);
if(strstr($html, "Photo not found in the database!")){
echo "Pic ".$x.' not found';
continue;
}
//get photo name
preg_match("~http://SOMEWEBSITE/postcontent/data/(d+)/(.*?)"~", $html, $data);
$src = str_replace('"', '', $data[0]);
$category = $data[1];
$name = $data[2];
$category_dir = $dir.$category.'/';
if(!is_dir($category_dir)){
mkdir($category_dir);
}
$jpeg = file_get_contents($src);
file_put_contents($category_dir.$name, $jpeg);
echo "Saved pic #".$x;
}
?>
What is the story behind this one?
Permalink: Robots_and_Men.html
Words: 234
Location: Buffalo, NY
09/11/09 03:51 - 67ºF - ID#49747
Christan spam from 716-536-7113
Someone at telephone number 716-536-7113 keeps spamming me texts.
It's freakin irritating.
I mean the last one could be taken as a threat depending how you read
it. I can't figure out who it is that would be close enough to get my
number but not close enough to realize this is enough for me to not be
friends with then anymore.
I tried calling but get one of those generic mailbox voicemails.
Who would think this is an appropriate message to send me. I guess
they figure i am in need of prayer and by sending me this text god
will favor them. How pathetic is that. Hopefully it's not someone
too important because I left them a mean message.
Permalink: Christan_spam_from_716_536_7113.html
Words: 126
Location: Buffalo, NY
Category: dancing
09/11/09 03:06 - 66ºF - ID#49745
Haze Hollow - Dancing and Camping?
Permalink: Haze_Hollow_Dancing_and_Camping_.html
Words: 18
Location: Buffalo, NY
09/10/09 11:58 - 56ºF - ID#49742
The stache
I spent the whole day with this crazy stache. I thought I was going
to just do it for today but now I don't want to cut it off. I had to
get the wax out to make it curl right.
Now I want to go out but no one's around ;(
Permalink: The_stache.html
Words: 56
Location: Buffalo, NY
09/10/09 10:09 - 66ºF - ID#49735
Lilho on tree
yesterday during her layover. It was nice to catch up. She had one
crazy trip to Aruba.
Permalink: Lilho_on_tree.html
Words: 35
Location: Buffalo, NY
09/09/09 01:09 - 74ºF - ID#49730
What I eat at night
Everyday before I go to sleep I eat a yummy veggie/ protein filled
snack dish and a second whey shake. It feels healthy. I wish I lived
somewhere with fresh crabs.
Permalink: What_I_eat_at_night.html
Words: 36
Location: Buffalo, NY
09/08/09 04:38 - 63ºF - ID#49722
At the hospital
I just took matt to the emergency room because he was having some
serious stomach issues. There are two people in the waiting room with
me. One is sleeping and the other is carrying on a conversion with a
Sherly temple movie on mute. He carries between smiling and laughing
and telling her to fuck off.
Its great that there is a hospital like a block away and Im sure it
raises the chances that I survive a heart attack or stroke. I just
wish I brought my headphone.
Permalink: At_the_hospital.html
Words: 93
Location: Buffalo, NY
09/07/09 10:43 - 68ºF - ID#49719
Penzey's spices
(E:matthew) and I went out to sushi at wasabi with (e:jim) and (e:james).
Afterwards we strolled around the strip a bit. It was nice ti see
construction has begun on the expansion of spot into the spot where
flower power bakery used to be.
The store front where bagel bros used to be across from wilson' farms
is turning into penzey's spices. Wonder what that will be like. I
could be exciting to have a spice store. For my birthday I want a new
spice set. I hope they are open by then.
Permalink: Penzey_s_spices.html
Words: 102
Location: Buffalo, NY
09/07/09 10:36 - 68ºF - ID#49718
My Furry Zuchini
This zuchini went bad over the weekend while we were gone. I have
never seen anything go so bad before.
Permalink: My_Furry_Zuchini.html
Words: 25
Location: Buffalo, NY
09/07/09 12:37 - 73ºF - ID#49714
Seaweed death trap
Well, it's not really seaweed. It's a combination of lake plants and
algae. We tried skinny dipping in it the first night. It was dark
and freaking scary. The time between clothes off, swimming and back
on the dock fully clothed was a little over 1 minute, lol.
It always feels like it is pulling you under and I can't help but
think snapping turtles, even though chris and (e:chris) say there aren't
any.
Permalink: Seaweed_death_trap.html
Words: 80
Location: Buffalo, NY
Author Info
Date Cloud
- 03/24
- 11/23
- 02/23
- 01/23
- 12/22
- 01/22
- 12/21
- 11/21
- 12/20
- 11/20
- 01/19
- 12/18
- 08/18
- 04/18
- 03/18
- 02/17
- 01/17
- 12/16
- 11/16
- 09/16
- 08/16
- 07/16
- 06/16
- 05/16
- 04/16
- 03/16
- 02/16
- 01/16
- 12/15
- 11/15
- 10/15
- 09/15
- 08/15
- 07/15
- 06/15
- 05/15
- 04/15
- 03/15
- 02/15
- 01/15
- 12/14
- 11/14
- 10/14
- 09/14
- 08/14
- 07/14
- 06/14
- 05/14
- 04/14
- 03/14
- 02/14
- 01/14
- 12/13
- 11/13
- 10/13
- 09/13
- 08/13
- 07/13
- 06/13
- 05/13
- 04/13
- 03/13
- 02/13
- 01/13
- 12/12
- 11/12
- 10/12
- 09/12
- 08/12
- 07/12
- 06/12
- 05/12
- 04/12
- 03/12
- 02/12
- 01/12
- 12/11
- 11/11
- 10/11
- 09/11
- 08/11
- 07/11
- 06/11
- 05/11
- 04/11
- 03/11
- 02/11
- 01/11
- 12/10
- 11/10
- 10/10
- 09/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 03/10
- 02/10
- 01/10
- 12/09
- 11/09
- 10/09
- 09/09
- 08/09
- 07/09
- 06/09
- 05/09
- 04/09
- 03/09
- 02/09
- 01/09
- 12/08
- 11/08
- 10/08
- 09/08
- 08/08
- 07/08
- 06/08
- 05/08
- 04/08
- 03/08
- 02/08
- 01/08
- 12/07
- 11/07
- 10/07
- 09/07
- 08/07
- 07/07
- 06/07
- 05/07
- 04/07
- 03/07
- 02/07
- 01/07
- 12/06
- 11/06
- 10/06
- 09/06
- 08/06
- 07/06
- 06/06
- 05/06
- 04/06
- 03/06
- 02/06
- 01/06
- 12/05
- 11/05
- 10/05
- 09/05
- 08/05
- 07/05
- 06/05
- 05/05
- 04/05
- 03/05
- 02/05
- 01/05
- 12/04
- 11/04
- 10/04
- 09/04
- 08/04
- 07/04
- 06/04
- 05/04
- 04/04
- 03/04
- 02/04
- 01/04
- 12/03
- 11/03
- 10/03
- 09/03
- 08/03
- 07/03
Category Cloud
- 24 linwood
- animals
- art
- basra
- bathroom
- biking
- birthdays
- body
- botanical gardens
- brushwood
- buffalo
- camping
- cars
- clothes
- clothing
- computers
- dancing
- food
- furniture
- games
- haircut
- haircuts
- halloween
- hiking
- holidays
- house
- key west
- mobile
- music
- nature
- pets
- provincetown
- rochester
- swimming
- toronto
- toys
- travel
- vacation
- weather
- wedding
- weddings
- work
- accidents
- allentown
- android
- animals
- apple
- architecture
- art
- artvoice
- bars
- bathroom
- beach
- bikes
- biking
- birthdays
- body
- books
- brushwood
- buffalo
- buffalo rising
- bugs
- buildings
- camping
- cancer
- cars
- cats
- central terminal
- childhood
- church of the ascension
- clothes
- clothing
- computer
- computers
- conference
- crohns
- dance
- dancing
- dentist
- design
- downtown
- drugs
- electronics
- elmwood
- energy
- environment
- estrip
- events
- exercise
- family
- festivals
- firecracker
- food
- friends
- furniture
- gadgets
- games
- garden
- gay
- government
- gym
- hair
- haircut
- haircuts
- halloween
- hardware
- health
- hiking
- history
- holiday
- holidays
- house
- housing
- jewlery
- kenmore
- key west
- life
- linux
- linwood
- love
- marriage
- media
- mobile
- mobl
- movies
- music
- mustache
- nature
- nikon
- opinion
- orange tongue
- party
- peeptalk
- people
- pets
- photos
- poetry
- politics
- portland
- pride
- programming
- property
- protest
- random
- recycling
- religion
- rememberbuffalo
- renting
- school
- shoes
- shopping
- sports
- stress
- stuff
- swimming
- technology
- television
- thesis
- thursday
- thursdays
- toys
- transportation
- travel
- vacation
- vegas
- war
- water
- weather
- web
- wedding
- weddings
- weekend
- windows
- winter
- work
- world
- youtube
- zooey