Re: [Tutor] responding to command line

2015-11-25 Thread Robert Nanney
I like to use paramiko for these types of things. Of course I don't have all the details but from the info you have provided it seems like you should be able to do this with ansible itself. Regards, Robert ___ Tutor maillist - Tutor@python.org To unsub

Re: [Tutor] PDF Scrapping

2015-11-25 Thread shawn wilson
On Nov 25, 2015 12:44 PM, "Francois Dion" wrote: > > if you > have any choice at all, avoid PDF at all cost to get data. > Agreed and IIRC all of that data should be in xml somewhere (look for their rpc pages). Probably start by searching for similar table names (and Google dorking their site fo

Re: [Tutor] responding to command line

2015-11-25 Thread Patrick Hess
Alan Gauld wrote: > But there is a python wrapoper round expect - pexpect - that > means you don't need to learn Tcl ;) > > https://github.com/pexpect/pexpect Interesting, thanks. And better yet, it's not just a wrapper around Expect: "Pexpect is in the spirit of Don Libes' Expect, but Pexpect i

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 12:43:51 -0500, Francois Dion writes: >This is well beyond the scope of Tutor, but let me mention the following: > >The code to pdftables disappeared from github some time back. What is on >sourceforge is old, same with pypi. I wouldn't create a project using >pdfta

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Francois Dion
This is well beyond the scope of Tutor, but let me mention the following: The code to pdftables disappeared from github some time back. What is on sourceforge is old, same with pypi. I wouldn't create a project using pdftables based on that... As far as what you are trying to do, it looks like th

Re: [Tutor] a class that may not be instantiated

2015-11-25 Thread Albert-Jan Roskam
Hi all, Thanks a lot for your replies! > Date: Wed, 25 Nov 2015 05:19:57 +1100 > From: st...@pearwood.info > To: tutor@python.org > Subject: Re: [Tutor] a class that may not be instantiated > > On Tue, Nov 24, 2015 at 03:36:21PM +, Albert-Jan Roskam wrote: > > Hi, > > > > I have two clas

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Python Beginner
Oh, I forgot to mention that I am using Python 3.4. Thanks again for your help pointing me in the right direction. ~Chris On Tue, Nov 24, 2015 at 1:36 PM, Python Beginner < pythonbeginner...@gmail.com> wrote: > Hi, > > I am looking for the best way to scrape the following PDF's: > > (1) > http:/

Re: [Tutor] Help

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 03:29:38 +, chantie sunday via Tutor write s: >Hello!,Can I kindly get someone to help me with my assignment? Thank you!Best >Regards,Chantelle Hi, and welcome. We don't do people's assignments, but we do help them write them. Post the assignment and the code

Re: [Tutor] Problem on handling if statement

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 17:28:24 +0800, Crusier writes: >Dear All, > >I am trying to do some web scraping. Attached below is my code: > > >from bs4 import BeautifulSoup >import requests > >#string = str(0175, 0005, 1177) >url = "https://www.etnet.com.hk/www/eng/stocks/realtime/quote.php?co

Re: [Tutor] responding to command line

2015-11-25 Thread Alan Gauld
On 25/11/15 08:27, Patrick Hess wrote: > richard kappler wrote: >> and I want the script to detect that password request and provide the >> password (Same for all 500 + machines, so no issue there). > > My recommendation would be to take a look at Expect[1]. > > Yes, I know, it's not Python, but

Re: [Tutor] Help

2015-11-25 Thread Alan Gauld
On 25/11/15 03:29, chantie sunday via Tutor wrote: > Hello!,Can I kindly get someone to help me with my assignment? Thank you!Best > Regards,Chantelle Sure, we will help you, but we won't do the assignment for you, just give you pointers in the right direction. But first you need to tell us: Wh

Re: [Tutor] responding to command line

2015-11-25 Thread Patrick Hess
richard kappler wrote: > and I want the script to detect that password request and provide the > password (Same for all 500 + machines, so no issue there). My recommendation would be to take a look at Expect[1]. Yes, I know, it's not Python, but using a tool specifically tailored to handle this k

[Tutor] Help

2015-11-25 Thread chantie sunday via Tutor
Hello!,Can I kindly get someone to help me with my assignment? Thank you!Best Regards,Chantelle ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Problem on handling if statement

2015-11-25 Thread Crusier
Dear All, I am trying to do some web scraping. Attached below is my code: from bs4 import BeautifulSoup import requests #string = str(0175, 0005, 1177) url = "https://www.etnet.com.hk/www/eng/stocks/realtime/quote.php?code=0175"; def web_scraper(url): response = requests.get(url) html