Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get value of a query ?
#2
(Mar-07-2020, 12:58 AM)JohnnyCoffee Wrote: How do I print on the screen only the value ?

You need to parse the query string manually, e.g. print(ws_qty.split('=')[1]), or use
urllib.parse.parse_qs utility function.
Reply


Messages In This Thread
Get value of a query ? - by JohnnyCoffee - Mar-07-2020, 12:58 AM
RE: Get value of a query ? - by scidam - Mar-07-2020, 09:01 AM
RE: Get value of a query ? - by JohnnyCoffee - Mar-07-2020, 01:48 PM
RE: Get value of a query ? - by buran - Mar-07-2020, 01:59 PM
RE: Get value of a query ? - by JohnnyCoffee - Mar-07-2020, 10:38 PM

Forum Jump:

User Panel Messages

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