-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify spreadsheet currency #65
Comments
I would also really like this. Im UK based. |
I got some interesting results changing the string |
This is a BIG implementation and effort of the development team. |
would it not make more sense to use the API from Digi-Key scraping is just old hat providing a structure that enables other users to assist in localization just makes sense |
I don't know that is the requirement for use the API. @kevindawson, please attack here the link (if possible) if the requirements. |
take a look at this |
Using the Octopart API comes up a lot. Here are some problems with it:
Mouser and Digikey also have their own APIs. Digikey required a user ID to access it; Mouser didn't but restricted the pricing data to purchase quantities of 1 and 10. And there were other restrictions the last time I checked. Then there are all the other distributors that don't have a public API at all. Web-scraping was the only approach I found in 2015 that avoided all these problems and made KiCost easy to install and use. Before going down the API route, someone will have to go through all the available APIs and determine what their current restrictions are and how they impact on getting costs and other data from the distributors. Then you can make an informed decision about which way to go. |
1, Octopart are using API's to collect data |
I'm sure they are. I'm sure they also have financial arrangements with the distributors whose APIs they use. KiCost is a FOSS tool: we have no way to pay for API access to distributor data.
Saying APIs are "better" requires you to answer the question "Better, how?" Do they provide better data? Probably not since the data scraped from the webpage should be identical to what comes through the API. Is it better for the KiCost user? Probably not since they might have to go register with each distributor to get an access key that has to be installed and then they're tracked by it. Is is better for the developers? Maybe, except we have to rebuild all the interfaces to the distributors.
I don't see how this pertains to the use of an API versus web scraping.
That seems to be an effort by a few engineers within Digikey. It doesn't directly impinge on Digikey's revenue-generating activities in the way that getting access to their part data would.
I contacted Digikey in July/2013 about getting access to their API. After several queries, they declined my request in Dec/2013 and told me to "utilize the Digi-Key website for continued access to our component information, availability, and pricing." And I have followed their suggestion since. I have checked the published APIs for Digikey and Mouser since then (but not recently). They had restrictions on what and how much data they provide, required secret codes, end-user registration, etc. But perhaps their API docs are inaccurate and you do have to talk with the API developers directly. If so, please contact them and relay their information back to us. That would be super helpful! Then we can make an informed decision.
It really needs to suit three parties: 1) the distributor, 2) the KiCost developers, and 3) the end user. I can only speak for the developers and the end users, but here's what we would need in order to move to using an API: a. No limits on the number of API accesses per unit time period. Make sure you mention these requirements when you talk to the API developers.
I'm not even sure what you mean by this. What we want is unrestricted access to the part information provided on their public web pages. That's what we have now using web scraping.
But we don't want them to track our growth. Why do they even need to do that? These are companies that sell actual products and make money from that. KiCost would provide a means to expose their parts to a group of potential purchasers. That seems like a straight-up deal that doesn't require any tracking.
That isn't needed when using a browser to access their web site, so why should KiCost need one? User configuration files are so old hat. |
Interesting argument and acknowledgement about KiCost history. Yes, fit with user - distributors - KiCad is the core of KiCost in my vision too. |
Saying APIs are "better" requires you to answer the question "Better, how?" Do they provide better data? Probably not since the data scraped from the webpage should be identical to what comes through the API. Is it better for the KiCost user? Probably not since they might have to go register with each distributor to get an access key that has to be installed and then they're tracked by it. Is is better for the developers? Maybe, except we have to rebuild all the interfaces to the distributors. if you live outside the us/$ zone |
Some scrape module are using |
Digikey, as example, have a specific web where could be get the url for each country-currency version of the site. The distributors submodule could have a Use the |
Started the development. May be necessary added To KiCost dependences (also remove CurrencyConverter). |
The code now is able to set the distributor locale but not the currency, that appear be configured on a cookie, not in the link of Digikey. |
Working for serial mode |
This website get some useful informations https://ipstack.com/ |
It works fine since #262, but have a issue related if language-currency-format. |
I think the same issues that affect Octopart also affect vendor APIs: they don't want server overload; they don't want competitors scraping all their data; they will monitor web access (API or regular) for data collection; you are equally at whim of their company policy and could start charging, or restrict access. I understand that Octopart make money from vendors when you follow an Octopart link to a vendor. I guess that is still true under Altium ownership, which also seems to be benign so far. In general, in my BOM tool I cache Octopart data for a configurable time like 48 hours which could apply equally well to vendor web sites. |
#275 give us one step forward to Mouser country/currency configuration. |
From the looks of the documentation and --help output, it doesn't seem possible to target region-specific supplier websites—this makes
kicost
more or less only useful to those operating in the US out-of-the-box, as the USD costs don't necessarily reflect the cost from the same supplier elsewhere and in other currencies.Would it be possible to add as an enhancement the ability to specify a country/region, e.g. using digikey.ca instead of digikey.com, either globally or on a per-supplier basis?
I'm not sure how consistently these region-specific sites are defined across suppliers—it seems they are generally listed exhaustively (DigiKey Mouser), so it might be possible to allow the user to specify just their TLD and keep a mapping of TLD to URL in each supplier's module. Alternatively, just let users specify the specific site variant they want for each supplier, and alter the TLD or subdomain as appropriate.
(For now I'm explicitly altering the source of a local copy - not the cleanest workaround!)
The text was updated successfully, but these errors were encountered: