-
Notifications
You must be signed in to change notification settings - Fork 98
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
Should KiCost move back scrape module? #313
Comments
I could not reproduce, I have the 403 error, but KiCost always recover the connection. |
@romain145 could you provide a complete log?
|
|
Doing the same test on LSS under W10, the scraping finishes and the generated xlsx is valid (with only digi key results of course). Is it an issue with Python 2.7? How can I force KiCost to use Python 3.5 on the VPS? |
My system is also Py3. Could you test on it, @romain145? |
Test ran on LSS under Win10 with the default Python (2.7.12):
See attached xml BOM file, generated xlsx file and log file. Will now change the python version and rerun the test. |
I followed this to change the python version used:
|
I followed this to change the python version used:
See attached XML, XMSX and log files: |
On a different project, the scraping ends with the same error at 83%:
I'm retrying with the -s flag. |
@romain145 the KiCost scrape module are now deprecated #314 . In few days we will release the API concept. Check the result by this new code: |
Please consider re-opening this issue as the octopart experiment appears to be a complete bust. I have downgraded to 0.1.47 to do anything useful with KiCost. |
@mobilinkd, @easyw , to reopen this discussion we will need someone with Python + web experience + java script working on. I stated a campaign https://forum.kicad.info/t/kicost-call-of-developers/13271 to call some users to help us. But was unsuccessful. |
@hildogjr
Then it would be much easier to find if some user may will in contributing to scrapers as they did in the past... At the moment we could even ask to @volunteerlabs if he could have a look at the digikey scraper, as he already implemented a working version for his tool... |
May not be working (due web site changes) but the scrape modules are available in https://github.com/xesscorp/KiCost/tree/scrape_modules |
Discussion continues at #346 |
KiCost ends the scraping before reaching the end without error.
romain@vps307675:
$ kicost -i isolator.xml --debug > kicost.log$ tail kicost.logProgress: 67%|██████████████████████████▋ | 144/216 [13:01<24:31, 20.44s/part]romain@vps307675:
Part ['U6'] not found at digikey.
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Part ['D1'] not found at digikey.
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Part ['Q1', 'Q2', 'Q4', 'Q5', 'Q6', 'Q7'] not found at digikey.
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Received 403, scraper possibly detected: Starting new session for https://www.digikey.com
Part ['J4'] not found at digikey.
romain@vps307675:
$ kicost -v$ uname -aKiCost 0.1.47
romain@vps307675:
Linux vpsxxx.ovh.net 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux
kicost.log
isolator.xml.txt
The text was updated successfully, but these errors were encountered: