Python Forum
URL String with parameters - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: URL String with parameters (/thread-26588.html)

Pages: 1 2


URL String with parameters - nikoloz - May-06-2020

Hello, please help.
how to get String of requested URL+parameters on server side,
like this "http://example.com?param1=a&token=TOKEN_TO_REPLACE&param2=c"

just want to know, 2 days searching, nowhere found THE UNSWER, Cry


RE: URL String with parameters - pyzyx3qwerty - May-06-2020

This site should help you :)


RE: URL String with parameters - nikoloz - May-06-2020

(May-06-2020, 12:26 PM)pyzyx3qwerty Wrote: This site should help you :)

Thank you but that example is for Java.


RE: URL String with parameters - buran - May-06-2020

do you use requests?


RE: URL String with parameters - nikoloz - May-06-2020

(May-06-2020, 12:35 PM)buran Wrote: do you use requests?


>>> import requests
>>> r = requests.get('https://api.github.com/events')
>>> r.text

Here is shown url, but I want to get it from request (when someone uses app, sending url+parameter ).

please post how to see it.


To get requested url+parameters


RE: URL String with parameters - buran - May-06-2020

(May-06-2020, 12:42 PM)nikoloz Wrote: please post how to use

To get requested url+parameters
I did posted a link - read the docs. they have excellent examples. I doubt I can provide better explanation than they do.


RE: URL String with parameters - buran - May-06-2020

(May-06-2020, 12:42 PM)nikoloz Wrote: Here is shown url, but I want to get it from request (when someone uses app, sending url+parameter ).
you posted additional info which makes your question unclear
do you want YOU to make request and pass params or are you talking of developing webapp?


RE: URL String with parameters - nikoloz - May-06-2020

(May-06-2020, 12:44 PM)buran Wrote:
(May-06-2020, 12:42 PM)nikoloz Wrote: To get requested url+parameters
I did posted a link - read the docs. they have excellent examples. I doubt I can provide better explanation than they do.

I have no idea why everywhere is urls declared ('http://foo.appspot.com/abc?def=ghi')
if it is unknown while client sends parameters, I want to know how did they get this url String Doh


"are you talking of developing webapp?"
YES Big Grin


RE: URL String with parameters - buran - May-06-2020

sorry, but I really cannot make sense of what you ask


RE: URL String with parameters - buran - May-06-2020

please, don't change post content after you get reply
there are many web frameworks - e.g. Django, Flask, bottle, to name a few. We have tutorials for Flask
https://python-forum.io/Thread-Flask-Starting-web-development-part-1
https://python-forum.io/Thread-Flask-Weather-app-Updatet

You should choose a framework, then we may suggest tutorilas