> On 19 Aug 2022, at 22:04, Chris Angelico wrote:
>
> On Sat, 20 Aug 2022 at 05:12, Barry wrote:
>>
>>
>>
On 19 Aug 2022, at 19:33, Chris Angelico wrote:
>>>
>>> What's the best way to precisely reconstruct an HTML file after
>>> parsing it with BeautifulSoup?
>>
>> I recall that
On Sun, 21 Aug 2022 at 17:26, Barry wrote:
>
>
>
> > On 19 Aug 2022, at 22:04, Chris Angelico wrote:
> >
> > On Sat, 20 Aug 2022 at 05:12, Barry wrote:
> >>
> >>
> >>
> On 19 Aug 2022, at 19:33, Chris Angelico wrote:
> >>>
> >>> What's the best way to precisely reconstruct an HTML file a
> On 21 Aug 2022, at 09:12, Chris Angelico wrote:
>
> On Sun, 21 Aug 2022 at 17:26, Barry wrote:
>>
>>
>>
On 19 Aug 2022, at 22:04, Chris Angelico wrote:
>>>
>>> On Sat, 20 Aug 2022 at 05:12, Barry wrote:
>> On 19 Aug 2022, at 19:33, Chris Angelico wrote:
>>
On 2022-08-20 21:51:41 -, Jon Ribbens via Python-list wrote:
> On 2022-08-20, Stefan Ram wrote:
> > Jon Ribbens writes:
> >>... or you could avoid all that faff and just do re.sub()?
> > source = ''
> >
> > # Use Python to change the source, keeping the order of attributes.
> >
> > result =
Hi, I am running a program with the punishment subrocess.Popen(...) what I
should do is to stop the script until the launched program is fully open. How
can I do this? I used a time.sleep() function but I think there are other ways.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
On 2022-08-21, Chris Angelico wrote:
> On Sun, 21 Aug 2022 at 09:31, Jon Ribbens via Python-list
> wrote:
>> On 2022-08-20, Chris Angelico wrote:
>> > On Sun, 21 Aug 2022 at 03:27, Stefan Ram wrote:
>> >> 2qdxy4rzwzuui...@potatochowder.com writes:
>> >> >textual representations. That way, the f
Sometimes, launching subprocesses can seem like punishment. I don't
think there is a standard cross-platform way to know when a launched
asynchronous process is "fully open" (i.e. fully initialized, accepting
user input).
On Sun, 2022-08-21 at 02:11 -0700, simone zambonardi wrote:
> Hi, I am runni
On Mon, 22 Aug 2022 at 05:39, simone zambonardi
wrote:
>
> Hi, I am running a program with the punishment subrocess.Popen(...) what I
> should do is to stop the script until the launched program is fully open. How
> can I do this? I used a time.sleep() function but I think there are other
> way
On Mon, 22 Aug 2022 at 05:43, Jon Ribbens via Python-list
wrote:
>
> On 2022-08-21, Chris Angelico wrote:
> > On Sun, 21 Aug 2022 at 09:31, Jon Ribbens via Python-list
> > wrote:
> >> On 2022-08-20, Chris Angelico wrote:
> >> > On Sun, 21 Aug 2022 at 03:27, Stefan Ram wrote:
> >> >> 2qdxy4rzwzu
I've had much success doing round trips through the lxml.html parser.
https://lxml.de/lxmlhtml.html
I ditched bs for lxml long ago and never regretted it.
If you find that you have a bunch of invalid html that lxml inadvertently
"fixes", I would recommend adding a stutter-step to your project: p
On Mon, 22 Aug 2022 at 10:04, Buck Evan wrote:
>
> I've had much success doing round trips through the lxml.html parser.
>
> https://lxml.de/lxmlhtml.html
>
> I ditched bs for lxml long ago and never regretted it.
>
> If you find that you have a bunch of invalid html that lxml inadvertently
> "fi
On Sun, Aug 21, 2022 at 2:05 PM Chris Angelico wrote:
> On Mon, 22 Aug 2022 at 05:39, simone zambonardi
> wrote:
> >
> > Hi, I am running a program with the punishment subrocess.Popen(...) what
> I should do is to stop the script until the launched program is fully open.
> How can I do this? I u
On Mon, 22 Aug 2022 at 13:41, Dan Stromberg wrote:
>
>
>
> On Sun, Aug 21, 2022 at 2:05 PM Chris Angelico wrote:
>>
>> On Mon, 22 Aug 2022 at 05:39, simone zambonardi
>> wrote:
>> >
>> > Hi, I am running a program with the punishment subrocess.Popen(...) what I
>> > should do is to stop the scr
On 22/08/2022 05:30, Chris Angelico wrote:
On Mon, 22 Aug 2022 at 10:04, Buck Evan wrote:
I've had much success doing round trips through the lxml.html parser.
https://lxml.de/lxmlhtml.html
I ditched bs for lxml long ago and never regretted it.
If you find that you have a bunch of invalid h
14 matches
Mail list logo