Skip to content

Instantly share code, notes, and snippets.

@aarondewindt
Created February 13, 2025 12:35
Show Gist options
  • Save aarondewindt/75c9e89ecb409e13fa9d6d45ebe56d18 to your computer and use it in GitHub Desktop.
Save aarondewindt/75c9e89ecb409e13fa9d6d45ebe56d18 to your computer and use it in GitHub Desktop.
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