yaqwsx/EasyEDAFootprintScraper

Some LCSC code are not found

Opened this issue · 0 comments

Like mentioned in the readme, it seems that some LCSC codes do not work, the search works but getting the component details do not.

For instance, for code C168704, it does find it via the POST to https://easyeda.com/api/components/search but then https://easyeda.com/api/components/{componetUuid} fails.

I have noticed that the search results contain different UUIDs depending on whether you look directly on ["uuid"] or ["dataStr"]["head"]["uuid"].

So if instead of using:
uuid = componentInfo["dataStr"]["head"]["uuid"]

We use:
uuid = componentInfo["uuid"]

Then fetchCompnentDetails(componetUuid, token=None, cookies=None) returns successfully since that UUID is found.