Re: Download unnamed web image?

2010-02-16 Thread galileo228
On Feb 16, 9:40 pm, galileo228 wrote: > On Feb 16, 8:48 pm, John Bokma wrote: > > > > > galileo228 writes: > > > Using BeautifulSoup, mechanize, and urllib, I've constructed the > > > following: > > > > br.open("http://www.sc

Re: Download unnamed web image?

2010-02-16 Thread galileo228
On Feb 16, 8:48 pm, John Bokma wrote: > galileo228 writes: > > Using BeautifulSoup, mechanize, and urllib, I've constructed the > > following: > > > br.open("http://www.school.edu/students/facebook/";) > > br.select_form(nr = 1) > > > b

Download unnamed web image?

2010-02-16 Thread galileo228
All, My python program signs onto the student facebook at my school and, given email addresses, returns the associated full name. If I were to do this through a regular browser, there is also a picture of the individual, and I am trying to get my program to download the picture as well. The probl

Re: Parsing for email addresses

2010-02-16 Thread galileo228
to figure out my solution, but I do need to know how to handle the same situation when the domain names are different, so your response was most helpful. Apologies for leaving out some details. Matt On Feb 16, 3:15 pm, Tim Chase wrote: > galileo228 wrote: > > [code] > > fileH

Re: Parsing for email addresses

2010-02-16 Thread galileo228
d that did the trick! 'Names' now has ['aaa12', 'bbb34', etc]. Obviously this only worked because all of the domain names were the same. If they were not then based on your comments and my own research, I would've had to use regex and the split(), which looked ma

Parsing for email addresses

2010-02-15 Thread galileo228
Hey all, I'm trying to write python code that will open a textfile and find the email addresses inside it. I then want the code to take just the characters to the left of the "@" symbol, and place them in a list. (So if galileo...@gmail.com was in the file, 'galileo228' w

Re: python and http POST

2010-02-13 Thread galileo228
help to visually locate what you're looking for). > > Best regards, >     Javier > > P.S. Some examples > here:http://www.packtpub.com/article/web-scraping-with-pythonhttp://www.packtpub.com/article/web-scraping-with-python-part-2 > > 2010/2/11 galileo228 : > >

Re: python and http POST

2010-02-13 Thread galileo228
help to visually locate what you're looking for). > > Best regards, >     Javier > > P.S. Some examples > here:http://www.packtpub.com/article/web-scraping-with-pythonhttp://www.packtpub.com/article/web-scraping-with-python-part-2 > > 2010/2/11 galileo228 : > >

Re: python and http POST

2010-02-13 Thread galileo228
help to visually locate what you're looking for). > > Best regards, >     Javier > > P.S. Some examples > here:http://www.packtpub.com/article/web-scraping-with-pythonhttp://www.packtpub.com/article/web-scraping-with-python-part-2 > > 2010/2/11 galileo228 : > >

python and http POST

2010-02-11 Thread galileo228
Hey All, Been teaching myself Python for a few weeks, and am trying to write a program that will go to a url, enter a string in one of the search fields, submit the search, and return the contents of the search result. I'm using httplib2. My two particular questions: 1) When I set my 'body' var