Code Monkey home page Code Monkey logo

getlegos's People

Contributors

jcambien avatar nicolaswurtz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

getlegos's Issues

just, not work

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

Doc installation

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 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.