Re: Extract email address from Java script in html source using python

2015-05-25 Thread Denis McMahon
On Sat, 23 May 2015 12:16:06 +0530, savitha devi wrote: > I am developing a web scraper code using HTMLParser. I need to extract > text/email address from java script with in the HTMLCode.I am beginner > level in python coding and totally lost here. Need some help on this. (a) Try a less ambitiou

Re: Extract email address from Java script in html source using python

2015-05-24 Thread Friedrich Rentsch
On 05/23/2015 04:15 PM, savitha devi wrote: What I exactly want is the java script is in the html code. I am trying for a regular expression to find the email address embedded with in the java script. On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: On Sat, May 23, 2015 at 4:46 PM, sa

Re: Extract email address from Java script in html source using python

2015-05-23 Thread VanguardLH
Steve Hayes wrote: > On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico > wrote: > >>On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: >>> I am developing a web scraper code using HTMLParser. I need to extract >>> text/email address from java script with in the HTMLCode.I am beginner level >

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Steve Hayes
On Sat, 23 May 2015 19:01:55 +1000, Chris Angelico wrote: >On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: >> I am developing a web scraper code using HTMLParser. I need to extract >> text/email address from java script with in the HTMLCode.I am beginner level >> in python coding and totall

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Peter Pearson
On Sat, 23 May 2015 12:16:06 +0530, savitha devi wrote: > > I am developing a web scraper code using HTMLParser. I need to extract > text/email address from java script with in the HTMLCode. Would be be correct in suspecting that you are assembling a list of email addresses for use in spamming?

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Chris Angelico
On Sun, May 24, 2015 at 12:15 AM, savitha devi wrote: > What I exactly want is the java script is in the html code. I am trying for > a regular expression to find the email address embedded with in the java > script. Now you have two problems. You can't write a regex that can interpret ECMAScrip

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Joel Goldstick
On Sat, May 23, 2015 at 10:15 AM, savitha devi wrote: > What I exactly want is the java script is in the html code. I am trying for > a regular expression to find the email address embedded with in the java > script. > > On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: >> >> On Sat, May 23,

Re: Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
What I exactly want is the java script is in the html code. I am trying for a regular expression to find the email address embedded with in the java script. On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: > On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: > > I am developing a web sc

Re: Extract email address from Java script in html source using python

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 4:46 PM, savitha devi wrote: > I am developing a web scraper code using HTMLParser. I need to extract > text/email address from java script with in the HTMLCode.I am beginner level > in python coding and totally lost here. Need some help on this. The java > script code is a

Extract email address from Java script in html source using python

2015-05-23 Thread savitha devi
I am developing a web scraper code using HTMLParser. I need to extract text/email address from java script with in the HTMLCode.I am beginner level in python coding and totally lost here. Need some help on this. The java script code is as below:

Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-11 Thread Richard Balbat
table > > then sends it out via email with a content type of text/html. > > > > > > For some reason a few erroneous whitespaces get introduced to the HTML > > source and a few < > chars get converted to < and > ??? > > > ... > > > C

Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-09 Thread Walter Hurry
On Fri, 08 Nov 2013 14:06:38 -0800, richard.balbat wrote: > I have the following script that reads in an HTML file containing a > table then sends it out via email with a content type of text/html. > > For some reason a few erroneous whitespaces get introduced to the HTML > s

Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-08 Thread dieter
richard.bal...@gmail.com writes: > I have the following script that reads in an HTML file containing a table > then sends it out via email with a content type of text/html. > > For some reason a few erroneous whitespaces get introduced to the HTML source > and a few < > c

When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???

2013-11-08 Thread richard . balbat
I have the following script that reads in an HTML file containing a table then sends it out via email with a content type of text/html. For some reason a few erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? # Import libr

Re: Is there any method to urlretrieve to a file the html source from a url with "Transfer-encoding": chunked

2008-02-25 Thread 7stud
On Feb 25, 8:25 am, Aldo Ceccarelli <[EMAIL PROTECTED]> wrote: > Thank you All for your suggestions: > > I could finally assess that > > besides partial read from chunked url - by-passed thanks to a socket > approach: > > f.i. this was good for > me:http://python.about.com/od/networkingwithpython/

Re: Is there any method to urlretrieve to a file the html source from a url with "Transfer-encoding": chunked

2008-02-25 Thread Aldo Ceccarelli
Thank you All for your suggestions: I could finally assess that besides partial read from chunked url - by-passed thanks to a socket approach: f.i. this was good for me: http://python.about.com/od/networkingwithpython/ss/beg_web_client_9.htm I have still two kind of problems that quit this pos

Re: [Newbie] Is there any method to urlretrieve to a file the html source from a url with "Transfer-encoding": chunked

2008-02-25 Thread Thinker
Aldo Ceccarelli wrote: > Hello All, > I apologize for posting a question on this but I could not find a > complete answer after reading and searching so far:-) > > My problem is that I'd like to store the html source of a certain web > url but when I try via urllib / urllib2

[Newbie] Is there any method to urlretrieve to a file the html source from a url with "Transfer-encoding": chunked

2008-02-25 Thread Aldo Ceccarelli
Hello All, I apologize for posting a question on this but I could not find a complete answer after reading and searching so far:-) My problem is that I'd like to store the html source of a certain web url but when I try via urllib / urllib2 reads or urlretrieve I get only a part of the con

Re: regarding html source code

2008-02-11 Thread subeen
Stefan Behnel <[EMAIL PROTECTED]> wrote: > > >> jainshasha wrote: > >>> well i have create a program which can read out the html source code > >>> files or any other web page source code files through my program so > >> Like this? > > &g

Re: regarding html source code

2008-02-11 Thread Stefan Behnel
Hi, shashank jain top-posted: > On Feb 11, 2008 11:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > >> jainshasha wrote: >>> well i have create a program which can read out the html source code >>> files or any other web page source code files through my prog

Re: regarding html source code

2008-02-11 Thread Stefan Behnel
jainshasha wrote: > well i have create a program which can read out the html source code > files or any other web page source code files through my program so Like this? >>> from lxml import html >>> page = html.parse("http://www.google.com";) >>&g

regarding html source code

2008-02-11 Thread jainshasha
hello friends well i want to create a program which can read my html based coding or any other web page code so i want to know how python can help me in this regard so anyone have ay idea about this thing please reply soon Thanks In Advance -- http://mail.python.org/mailman/listinfo/python-lis

regarding html source code

2008-02-11 Thread jainshasha
hello friends well i have create a program which can read out the html source code files or any other web page source code files through my program so please guys help me out in this problem that how python can help me in this regard and if there is any other language through which i can easily

Re: Help extracting info from HTML source ..

2007-01-26 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "Miki" <[EMAIL PROTECTED]> wrote: > Hello Shelton, > > > I am learning Python, and have never worked with HTML. However, I would > > like to write a simple script to audit my 100+ Netware servers via their web > > portal. > Always use the right tool, Beautilful

Re: Help extracting info from HTML source ..

2007-01-26 Thread Miki
Hello Shelton, > I am learning Python, and have never worked with HTML. However, I would > like to write a simple script to audit my 100+ Netware servers via their web > portal. Always use the right tool, BeautilfulSoup (http://www.crummy.com/software/BeautifulSoup/) is best for web scraping (I

Help extracting info from HTML source ..

2007-01-25 Thread s. d. rose
#x27;t know how to get the text that is the hyperlink. So in the portal, I've got a link 'Scheduled Server Reboot' going to say /ScheduledTasks/ID3/ on Server1, using similar to above clipped HTML source code. Can someone please help me? Sure, I could manually go to each

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Remi Villatel
[EMAIL PROTECTED] wrote: > Several times I logged-in successfully but after log-in I can't use > features/services which were shown prior to my login. Can anyone exoert > from this forum check , is it technical fault of Bank Web Site or this > problem pertaining to the user(me). This is definitiv

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > I have posted the same question in alt.html but no one yet replied. You should ask your butcher. Now please stop posting off-topic. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])"

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > I have posted the same question in alt.html but no one yet replied. No wonder. -- http://mail.python.org/mailman/listinfo/python-list

What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Thaqalainnaqvi
I have posted the same question in alt.html but no one yet replied. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > > They don't know whats happeing despite sending them several e-mails. So what? How are _we_ supposed to know? Even if somebody here found a bug in their java script (this is a Python NG, btw...) - now _how_ exactly are you planning to update their website with that in

What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Thaqalainnaqvi
They don't know whats happeing despite sending them several e-mails. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Jerry
This really isn't the place to ask what is wrong with code that isn't Python, especially of someone else's website. There is absolutely no way for us to tell what is happening on the server side. You should contact the maintainer of the site and let them know you are having problems. -- Jerry -

Re: What's wrong in this HTML Source file of a Bank

2006-06-13 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > Several times I logged-in successfully but after log-in I can't use > features/services which were shown prior to my login. Can anyone exoert > > from this forum check , is it technical fault of Bank Web Site or this > problem pertaining to the user(me). It's definitiv

What's wrong in this HTML Source file of a Bank

2006-06-13 Thread Thaqalainnaqvi
Several times I logged-in successfully but after log-in I can't use features/services which were shown prior to my login. Can anyone exoert from this forum check , is it technical fault of Bank Web Site or this problem pertaining to the user(me). hPLUS Login https://rs6.habibbank.ae/stylesh

Re: html source

2006-02-14 Thread Kartic
rt (of the page-generation logic) and yield a page without all the fancy scripts. Why don't you try setting the user-agent to same as the browser you are using and see if you get the same HTML source this time. Refer http://diveintopython.org/http_web_services/user_agent.html on setting

Re: html source

2006-02-13 Thread Steve Holden
Steve Young wrote: > Hi, I was wondering why when I use urllib2.build_opener().open(url), it > doesn't give me the same thing as if I would just click on view--> > source on my web browser. It gives me most of html on the page but > leaves out lots of scripts and some of the link's urls are trun

html source

2006-02-13 Thread Steve Young
Hi, I was wondering why when I use urllib2.build_opener().open(url), it doesn't give me the same thing as if I would just click on view--> source on my web browser. It gives me most of html on the page but leaves out lots of scripts and some of the link's urls are truncated. Is there something

Re: Trying to find regex for any script in an html source

2005-12-25 Thread 28tommy
Thank you all. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to find regex for any script in an html source

2005-12-24 Thread Mike Meyer
"28tommy" <[EMAIL PROTECTED]> writes: > Hi, > I'm trying to find scripts in html source of a page retrieved from the > web. > I'm trying to use the following rule: > > match = re.compile('') > > I'm testing it on a page that includes

Re: Trying to find regex for any script in an html source

2005-12-21 Thread Paul McGuire
"28tommy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I'm trying to find scripts in html source of a page retrieved from the > web. > I'm trying to use the following rule: > > match = re.compile('') > &l

Re: Trying to find regex for any script in an html source

2005-12-21 Thread Mitja Trampus
28tommy wrote: > Hi, > I'm trying to find scripts in html source of a page retrieved from the > web. > I'm trying to use the following rule: > > match = re.compile('') > > I'm testing it on a page that includes the following source: > > &l

Trying to find regex for any script in an html source

2005-12-21 Thread 28tommy
Hi, I'm trying to find scripts in html source of a page retrieved from the web. I'm trying to use the following rule: match = re.compile('') I'm testing it on a page that includes the following source: <script language="JavaScript1.2" src="<a rel=