Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Chain object that have parent child relation..
Post: RE: Chain object that have parent child relation..

(Dec-11-2023, 09:19 PM)Gribouillis Wrote: I think you should generate unformatted html code, then process it with bs4.BeautifulSoup.prettify() Custom formatters can be created to alter the result o...
SpongeB0B General Coding Help 10 967 Dec-12-2023, 10:11 AM
    Thread: Chain object that have parent child relation..
Post: RE: Chain object that have parent child relation..

def looper(k,v): if v == {}: print(str(k) + ' |') else: print(' ' + str(k) + ' +') for key,val in v.items(): looper(key,val) for k,v in builder['Null'].items(): looper(k,v)This is just a...
SpongeB0B General Coding Help 10 967 Dec-11-2023, 10:55 AM
    Thread: Chain object that have parent child relation..
Post: RE: Chain object that have parent child relation..

@Gribouillis Thank you ! This is working great, and I discover defaultdict that is a relief to work with dict :) now with {'John': {'David': {'Grunt': {}}, 'Jade': {}}}I would like to print a hierar...
SpongeB0B General Coding Help 10 967 Dec-11-2023, 10:01 AM
    Thread: Chain object that have parent child relation..
Post: RE: Chain object that have parent child relation..

@rob101 The output can be as a dictbut I doubt it's more quicker than list or tuples ? and how could I generate this dict from the DB @rob101 ?
SpongeB0B General Coding Help 10 967 Dec-10-2023, 05:44 PM
  Question Thread: Chain object that have parent child relation..
Post: Chain object that have parent child relation..

Hi everyone, I have some data in a DB that have a parent properties name|parent John|Null David|John Grunt|David Jade|JohnThis give this ~hierarchy John - David - Grunt - JadeI wou...
SpongeB0B General Coding Help 10 967 Dec-10-2023, 05:02 PM
    Thread: Python coming to DroidScript (build native Android Apps)
Post: RE: Python coming to DroidScript (build native And...

Hi @d_a_v_e Thanks for the sharing. I've tried to visit your website but I got [Image: https://i.ibb.co/xHnRc24/damn.png] Cheers
SpongeB0B News and Discussions 5 1,597 Dec-08-2023, 04:56 PM
    Thread: Advent of code 2023
Post: RE: Advent of code 2023

Thank @snippsat, From here I got a BIG adventofcode.com Wrote:403 Forbidden **undecided**
SpongeB0B News and Discussions 2 740 Dec-08-2023, 04:48 PM
    Thread: cant click button by script at page
Post: RE: cant click button by script at page

Hi @michael1834, With which Python module are you interacting with the html DOM ? Thanks.
SpongeB0B Web Scraping & Web Development 1 993 Dec-08-2023, 04:44 PM
    Thread: Python for frontend !
Post: RE: Python for frontend !

(Dec-09-2022, 06:07 PM)snippsat Wrote: .... htmx is for me one the best new tool out there for simplify web-development. To give a simple example all in one file, so this dos call(AJAX call no pag...
SpongeB0B News and Discussions 9 2,204 Dec-04-2023, 06:32 AM
  Question Thread: Why The maximum amount of images for signatures is 1 ?
Post: Why The maximum amount of images for signatures is...

Hi everyone, I wanted to update my signature. but I got the following msg python-forum.io Wrote:The maximum amount of images for signatures is 1. By curiosity, why is it limited to one ? Thanks :)
SpongeB0B Board 1 584 Nov-17-2023, 06:34 PM
    Thread: [solved] Regex expression do not want to taken :/
Post: RE: [solved] Regex expression do not want to taken...

Thank you @snippsat ! Meanwhile I found a really interesting documentation to read https://docs.python.org/3/howto/regex.html I've read it fully, and have totally change my code and RegEx that now w...
SpongeB0B General Coding Help 2 659 Nov-06-2023, 02:43 PM
    Thread: [solved] Regex expression do not want to taken :/
Post: [solved] Regex expression do not want to taken :/

Hi everyone, I've already used the module re a couple of times. but this time I have one expression that I can't pass to Python without getting an error The expression Quote:(?<=^([^"']|["'][^"']...
SpongeB0B General Coding Help 2 659 Nov-06-2023, 08:48 AM
    Thread: Weird characters scraped
Post: RE: Weird characters scraped

Hi @samuelbachorik, &amp; is not a "weird" character it's an "HTML character entity references" .. Damn that a long name... https://en.wikipedia.org/wiki/List_of_XM...references If you plan to u...
SpongeB0B Web Scraping & Web Development 3 854 Oct-28-2023, 03:27 PM
    Thread: Using Autostart to run a GUI program at startup. Rpi
Post: RE: Using Autostart to run a GUI program at startu...

Hi @Edward_ I'm not an expert with .desktop file (you might want to ask you question on a linux / or even better an desktop environment forum. You might even found some clue here (but yes it's not ...
SpongeB0B General Coding Help 1 576 Oct-28-2023, 03:19 PM
    Thread: remove all comment ?
Post: RE: remove all comment ?

Hi @Gribouillis ! I don't see either, but in the following comments (where is located the script) some pp seem to have discover some flaws.. I will try it myself later-on and let you know if it work...
SpongeB0B General Coding Help 7 1,185 Oct-27-2023, 08:06 AM
    Thread: remove all comment ?
Post: RE: remove all comment ?

(Oct-26-2023, 10:23 PM)deanhystad Wrote: If you use VSCode there are several plugins that do this.Thanks @deanhystad, I've searched for one https://open-vsx.org but found nothing. Have you one name ...
SpongeB0B General Coding Help 7 1,185 Oct-27-2023, 06:23 AM
    Thread: remove all comment ?
Post: RE: remove all comment ?

(Oct-26-2023, 04:21 PM)buran Wrote: a quick google search and https://stackoverflow.com/q/1769332/4046632 https://gist.github.com/BroHui/aca2b8e6e...46c9837fa3 https://www.google.com/search?q=remov...
SpongeB0B General Coding Help 7 1,185 Oct-27-2023, 06:15 AM
  Question Thread: remove all comment ?
Post: remove all comment ?

Hi everyone, I would like to remove all the comments in few of my .py files. I could write a Python program to do so, but maybe someone already write one ? I can't believe that I would be the only o...
SpongeB0B General Coding Help 7 1,185 Oct-26-2023, 04:09 PM
  Heart Thread: How create programmatically variables ?
Post: RE: How create programmatically variables ?

Thank you @Gribouillis @buran @snippsat @deanhystad for your input :) Meanwhile I did create what I was needed with dictionary. But thanks to yours reply, I will improve it and make a class based o...
SpongeB0B General Coding Help 6 1,215 Aug-19-2023, 05:10 AM
    Thread: Help - FileNotFound
Post: RE: Help - FileNotFound

Hi @SmallGuy, I don't use either Colab neither than pandas or Windows... But if I were you I will try some basic test without pandas like this: from os.path import isfile #info https://docs.python....
SpongeB0B General Coding Help 6 1,313 Aug-12-2023, 06:30 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020