PDA

View Full Version : [Reach]Halo reach screenshot downloader



DEElekgolo
May 7th, 2010, 02:27 AM
Made in python right before bed. It downloads your halo reach screenshot after you input your gamer tag. It will download them all automatically in the same directory you run the app.
Quick and dirty I know. I have a .net app version made that won't be released yet until I optimize its parsing. Until then, settle with this.


http://www.filedropper.com/dist

sauce

import urllib2
import re
from BeautifulSoup import BeautifulSoup
soup = BeautifulSoup
gt = raw_input("Tell me your gamertag: ").replace(" ","%20")
link = 'http://www.bungie.net/Stats/Reach/Screenshots.aspx?player='+gt
print "Loading page...\n"

page = urllib2.urlopen(link).read()

soup = BeautifulSoup(page)
files = soup.findAll(attrs={'class' : 'info'})
if len(files) > 0:
for w in files:
title = str(w.find(id=re.compile("title")).contents[0])
highres = w.find(id=re.compile("hiresLink"))['href']
print title
print "http://www.bungie.net"+highres
pic = urllib2.urlopen("http://www.bungie.net"+highres)
file = open(title+".jpg","wb")
file.write(pic.read())
file.close()
raw_input("Press Enter to exit")
if len(files) == 0:
print "no screenshots found"
raw_input("Press Enter to exit")
uses beautiful soup

Also, someone add the reach prefix.

sevlag
May 7th, 2010, 07:41 PM
I dont really trust an app that needs my gamertag, i mean there could be no risk, but ya know how the internet works

DEElekgolo
May 7th, 2010, 07:53 PM
virus.exe

Hunter
May 10th, 2010, 03:13 PM
I dont really trust an app that needs my gamertag, i mean there could be no risk, but ya know how the internet works

... you are giving no person details such as email/password... what can it do with a gamertag?

paladin
May 10th, 2010, 10:47 PM
... you are giving no person details such as email/password... what can it do with a gamertag?

Send friend requests!

annihilation
May 10th, 2010, 11:06 PM
... you are giving no person details such as email/password... what can it do with a gamertag?

A lot if you know what you're doing.:downs:
Although I highly doubt Dee would know.

DEElekgolo
May 10th, 2010, 11:51 PM
A lot if you know what you're doing.:downs:
Although I highly doubt Dee would know how to do any of that.
Python is a good language.


oh yea and
http://deelekgolo.codebrainshideout.net/Pics/2010-05-10_2121.png

Spartan094
May 11th, 2010, 08:47 PM
Needs a larger screen. Meh good for if your in a hurry.

DEElekgolo
May 11th, 2010, 11:21 PM
You can resize it.