skip to Main Content

Reformatting a json tree using python

I have a json tree at hand, I want to reformat it. **The input is somewhat like : ** [ { "archive":{ "LOGS":{ "_files":[ "zomp_download_20220601170001.log", "zomp_download_20220626170002.log" ] }, "SUMMARY":{ "_files":[ "SUMMARY_zomp_report_2022-04-01.csv", "SUMMARY_zomp_report_2022-06-25.csv" ] }, "_files":[ "lexter_report_2022-04-01.csv", "lexter_report_2022-06-25.csv" ] } }…

VIEW QUESTION

Extract a word from a line of HTML

I have the following line from a html file. src="https://www.com/seek-images/seek-icons/horoskop-*pluto.gif*" alt="" />*Pluto*</div>n Using Python , regex, How do I extract Pluto (or any planet name here)..from the above line. I tried regex with [w]+ and match = re.search(regexeg, line) if…

VIEW QUESTION

Can't connect to mysql with Django inside docker

I am trying to start django project using MySQL and Docker to containerize it. But get an error. Here is it's traceback: testcasebooks-backend-1 | Traceback (most recent call last): testcasebooks-backend-1 | File "/usr/local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 289, in ensure_connection testcasebooks-backend-1 | self.connect()…

VIEW QUESTION
Back To Top
Search