On Sun, Apr 17, 2011 at 11:58 AM, Noufal Ibrahim wrote:
> On Sun, Apr 17 2011, Sriram Narayanan wrote:
>
> > If it's machine setup, then please use either puppet or chef or func.
> > You'll get a lot by way of features.
>
> [...]
>
> Do you have a recommendation from those 3?
>
those are for con
Hi All,
I am working on a self project for grabbing certain URL's from the web. Do
some processing and store the final contents in text/pdf file.
I am also using html2text (
https://github.com/aaronsw/html2text/archives/master ) for converting the
fetched page into text format.
As a first step I
On Sun, Apr 17, 2011 at 8:01 PM, Nikunj Badjatya
wrote:
> Hi All,
>
> I am working on a self project for grabbing certain URL's from the web. Do
> some processing and store the final contents in text/pdf file.
>
> I am also using html2text (
> https://github.com/aaronsw/html2text/archives/master )
Thanks for the quick reply..
I hve never touched Django before.
I tried as:
{{{
#!/bin/python
import os
import urllib
+ from django.utils.encoding import smart_str
fetch = urllib.urlopen("some-web-link.htm")
mainfile = open ('main.html', 'w' )
+ myunistr = smart_str(fetch)
print myunistr
ma
On Sun, Apr 17, 2011 at 8:43 PM, Nikunj Badjatya
wrote:
> Thanks for the quick reply..
> I hve never touched Django before.
>
> I tried as:
>
> {{{
>
> #!/bin/python
>
> import os
> import urllib
> + from django.utils.encoding import smart_str
>
> fetch = urllib.urlopen("some-web-link.htm")
>
> ma
Tried with the change.
{{{
...
...
- myunistr = smart_str(fetch)
+ myunistr = smart_str(fetch.read())
...
...
}}}
Output:
{{{
Traceback (most recent call last):
File "html2text.py", line 447, in
data = open(arg, 'r').read().decode(encoding)
File "/usr/lib/python2.6/encodings/utf_8.py", l
On Sun, Apr 17, 2011 at 9:13 PM, Nikunj Badjatya
wrote:
>
> Tried with the change.
> {{{
> ...
> ...
> - myunistr = smart_str(fetch)
>
> + myunistr = smart_str(fetch.read())
> ...
> ...
> }}}
>
> Output:
>
> {{{
> Traceback (most recent call last):
> File "html2text.py", line 447, in
> dat
Dear Jaganadh,
I have tried with separate individual execution as
{{{
$ python html2text.py index1.htm
Traceback (most recent call last):
File "../aaronsw-html2text-d9bf7d6/html2text.py", line 488, in
data = data.decode(encoding)
File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in
Hi,
With stripogram Its working fine.
Thanks a lot. :) !!
But couldnt understand the reason behind the previous html2text malfunction
for that particular (index1.htm) link.??!
On Sun, Apr 17, 2011 at 10:28 PM, JAGANADH G wrote:
>
>>
> Hi
> Do the following things
>
> install the python li
A nice article by Danny Greenfeld on interview blunders made by people
looking for Python programmers. Given the number of companies here
looking for people, this seemed relevant.
http://pydanny.blogspot.com/2011/04/how-not-to-interview-pythonistas.html
--
_
On Sun, Apr 17, 2011 at 11:13 PM, Nikunj Badjatya
wrote:
> Hi,
>
> With stripogram Its working fine.
> Thanks a lot. :) !!
>
> But couldnt understand the reason behind the previous html2text malfunction
> for that particular (index1.htm) link.??!
>
>
beacuse html2text encounters a problem with ut
On Sun, Apr 17, 2011 at 11:17 PM, JAGANADH G wrote:
>
>
> On Sun, Apr 17, 2011 at 11:13 PM, Nikunj Badjatya <
> nikunjbadja...@gmail.com> wrote:
>
>> Hi,
>>
>> With stripogram Its working fine.
>> Thanks a lot. :) !!
>>
>> But couldnt understand the reason behind the previous html2text
>> malfunc
On Fri, Apr 15, 2011 at 11:01 AM, Nitin Kumar wrote:
> the reason for the same is:
>
> We got to machine setup, one is US and one in India, according to machine
> location we need to use local server.
> So I was looking for IP which help me differentiate the position of client
> Machine to use th
13 matches
Mail list logo