Skip to content

Instantly share code, notes, and snippets.

@Doumanix
Doumanix / lcsc-search-api.py
Created February 17, 2023 10:26 — forked from Bouni/lcsc-search-api.py
LCSC search API
from pprint import PrettyPrinter
import requests
pp = PrettyPrinter()
def query(search)
url = f"https://wwwapi.lcsc.com/v1/search/global-search?keyword={search}"
r = requests.get(url)
pp.pprint(r.json())