Created
February 13, 2025 12:35
-
-
Save aarondewindt/75c9e89ecb409e13fa9d6d45ebe56d18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qrcode | |
from pathlib import Path | |
import qrcode.image.svg | |
def main(): | |
dir_path = Path(__file__).parent | |
urls = { | |
'dc_contact': 'https://delft-circuits.com/contact-us/', | |
'paper_2': 'https://doi.org/10.1063/5.0203101', | |
'paper_1': 'https://pubs.aip.org/aip/apl/article/126/3/034003/33321101' | |
} | |
for name, url in urls.items(): | |
img = qrcode.make(url, image_factory=qrcode.image.svg.SvgPathImage) | |
img.save(dir_path / f"{name}.svg") | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment