Results 1 to 9 of 9

Thread: [Reach]Halo reach screenshot downloader

  1. #1

    [Reach]Halo reach screenshot downloader

    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
    Code:
    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.
    Reply With Quote

  2. #2
    For Gnomejas sevlag's Avatar
    Join Date
    Oct 2008
    Posts
    1,875

    Re: [Reach]Halo reach screenshot downloader

    I dont really trust an app that needs my gamertag, i mean there could be no risk, but ya know how the internet works
    Reply With Quote

  3. #3

    Re: [Reach]Halo reach screenshot downloader

    virus.exe
    Reply With Quote

  4. #4
    Senior Member Hunter's Avatar
    Join Date
    Jan 2007
    Location
    Stoke, UK
    Posts
    2,968

    Re: [Reach]Halo reach screenshot downloader

    Quote Originally Posted by sevlag View Post
    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?
    Reply With Quote

  5. #5
    Cancer paladin's Avatar
    Join Date
    Dec 2006
    Location
    DGG558
    Posts
    4,614

    Re: [Reach]Halo reach screenshot downloader

    Quote Originally Posted by Hunter View Post
    ... you are giving no person details such as email/password... what can it do with a gamertag?
    Send friend requests!
    Reply With Quote

  6. #6
    huehuehue annihilation's Avatar
    Join Date
    Jul 2009
    Location
    California
    Posts
    1,488

    Re: [Reach]Halo reach screenshot downloader

    Quote Originally Posted by Hunter View Post
    ... 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.
    Although I highly doubt Dee would know.
    Last edited by annihilation; May 11th, 2010 at 01:13 AM.
    Reply With Quote

  7. #7

    Re: [Reach]Halo reach screenshot downloader

    Quote Originally Posted by annihilation View Post
    A lot if you know what you're doing.
    Although I highly doubt Dee would know how to do any of that.
    Python is a good language.


    oh yea and
    Last edited by DEElekgolo; May 11th, 2010 at 12:22 AM.
    Reply With Quote

  8. #8
    ._. Spartan094's Avatar
    Join Date
    Aug 2008
    Location
    Michigan
    Posts
    1,328

    Re: [Reach]Halo reach screenshot downloader

    Needs a larger screen. Meh good for if your in a hurry.
    Reply With Quote

  9. #9

    Re: [Reach]Halo reach screenshot downloader

    You can resize it.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •