Re: [Tutor] entering text on web site

2012-06-13 Thread Benjamin Fishbein
Thanks. I'm trying to automatically post text to a web page from Python and retrieve the resultant page. It's not just name and password, though; I need to do it over and over again with chunks of info from a list. The page seems to be using POST. form method='POST' is written all throughout the

Re: [Tutor] matplotlib pylab question - offset bar graph labels

2012-06-13 Thread Sean Carolan
> I've got a function that builds a bar graph.  We are 95% happy with > it, but the x-axis tick labels are a little bit skewed to the right. > Anyone know how to skew the labels over by 10 or 20 pixels?  Here's > the code that generates my xticks: > > xticks(range(len(builds)), users, rotation=30)

[Tutor] matplotlib pylab question - offset bar graph labels

2012-06-13 Thread Sean Carolan
I've got a function that builds a bar graph. We are 95% happy with it, but the x-axis tick labels are a little bit skewed to the right. Anyone know how to skew the labels over by 10 or 20 pixels? Here's the code that generates my xticks: xticks(range(len(builds)), users, rotation=30) ___

Re: [Tutor] entering text on web site

2012-06-13 Thread Michiel Overtoom
On Jun 13, 2012, at 14:35, Benjamin Fishbein wrote: > I want to put text in a text box on the webpage, have it entered into the > website, and then get the results. Is there a way to do this with Python? http://wwwsearch.sourceforge.net/mechanize/ is good for this. -- Test your knowledge of f

Re: [Tutor] entering text on web site

2012-06-13 Thread Walter Prins
Hi, On 13 June 2012 13:35, Benjamin Fishbein wrote: > Hello. I have been teaching myself Python and have been stuck on this problem > for a week--I scoured the web for an answer and even asked a couple computer > programmer friends. > I managed to write a simple program with urllib that downloa

[Tutor] entering text on web site

2012-06-13 Thread Benjamin Fishbein
Hello. I have been teaching myself Python and have been stuck on this problem for a week--I scoured the web for an answer and even asked a couple computer programmer friends. I managed to write a simple program with urllib that downloads the content from web pages; but I want to put text in a te

Re: [Tutor] How to read websites - Web Scraping or Parsing in python

2012-06-13 Thread Yashwin Kanchan
Hi Surya Have you tried using IE automation (assuming you are using windows). I used the library from http://www.mayukhbose.com/python/IEC/index.php import IEC ie = IEC.IEController() ie.Navigate('http://knolzone.com/unlock-hidden-themes-in-windows-7-and-other-useful-tips-part-5-of-7/') ie.GetDo

Re: [Tutor] How to read websites - Web Scraping or Parsing in python

2012-06-13 Thread Alan Gauld
On 13/06/12 10:06, Surya K wrote: As my target webpage could be anyone of web, and each website's designers could have designed in their own fashion using different "class names", I am unable to figure out how to read "article content" in a webpage. This is always the problem with scraping web

[Tutor] How to read websites - Web Scraping or Parsing in python

2012-06-13 Thread Surya K
Hi, I am trying to write a python program which reads any webpage's content. Considering a blog, I'd like to read all the content written by the author in it. So, each blog/ site would be having different type of HTML/ XML whether its Blogger or Wordpress or Typepad or any.. I thought of using