简体   繁体   中英

Customizable URL links based on a variable name

I have a url link that I generate from each run of a code. The url link is stored in a variable and it is then called by a href.... (with the braces before) I am using cgi in python, if it helps Each time I input a UniPROT ID, I generate a string based url

I want that url to be general each time I run. How do I do it?

Image (Im unable to add image in the post, here the site is forcing me to use a url for this)

Each time I input a UniPROT ID, I generate a string based url

I want that url's hyperlink to be general each time I run. How do I do it?

The file name generate strategy should be changed to something related to image data.

Try using md5 of the image as the file name or some hash function.

Thus each time you get the same link no matter how many times you run the code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM