nicolaswurtz / getlegos Goto Github PK
View Code? Open in Web Editor NEWgetlegos Récupérer les notices de LEGO facilement / Retrieve LEGO's notice easily
License: Do What The F*ck You Want To Public License
getlegos Récupérer les notices de LEGO facilement / Retrieve LEGO's notice easily
License: Do What The F*ck You Want To Public License
Hello,
Perhaps my version of php is not supported yet ?
I got this error :
getlegos git:(master) php getlegos.php 8939
8939PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /tmp/getlegos/getlegos.php:18
Stack trace:
#0 /tmp/getlegos/getlegos.php(36): url2json('https://www.leg...')
#1 /tmp/getlegos/getlegos.php(106): recupInfos('8939')
#2 /tmp/getlegos/getlegos.php(115): moulinette('8939')
#3 {main}
thrown in /tmp/getlegos/getlegos.php on line 18
If it should help, url in code is https://www.lego.com//service/biservice/search\?fromIndex\=0\&locale\=fr-FR\&onlyAlternatives\=false\&prefixText\= but it looks like real one should be something like https://www.lego.com/fr-fr/service/buildinginstructions/search\#\?search\&text\=8939%2520Lesovikk%2520Bionicle
If it should helps :
getlegos git:(master) php -v
PHP 7.1.11-0ubuntu0.17.10.1 (cli) (built: Nov 1 2017 16:30:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.11-0ubuntu0.17.10.1, Copyright (c) 1999-2017, by Zend Technologies
Super outil pour Noël :)
Je viens de l'installer sous Ubuntu. Voici une petite doc :
sudo apt-get install php php-curl composer git
git clone https://github.com/nicolaswurtz/getlegos.git
cd getlegos/
composer install
A rajouter dans le Readme ?
Encore merci !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.