Giter VIP home page Giter VIP logo

food2's People

Contributors

sebastien-m avatar

Stargazers

 avatar

Watchers

 avatar

food2's Issues

Add prices

Add prices to each ingredient to get an estimated price for shopping list

List index out of range

$ python manage.py fill_database tomate

Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/home/pi/.local/share/virtualenvs/food2-0t2ClJhG/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/home/pi/.local/share/virtualenvs/food2-0t2ClJhG/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pi/.local/share/virtualenvs/food2-0t2ClJhG/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/pi/.local/share/virtualenvs/food2-0t2ClJhG/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/var/www/html/food2/food2/app/management/commands/fill_database.py", line 21, in handle
    recipe_data = scraper.extract_recipes_data()
  File "/var/www/html/food2/food2/app/management/commands/web_scraper/scraper.py", line 37, in extract_recipes_data
    recipe.get_recipe_steps()
  File "/var/www/html/food2/food2/app/management/commands/web_scraper/Recipe.py", line 61, in get_recipe_steps
    recipe_steps.append(step.text.split('\t\t\t')[1].split('\t\t')[0])
IndexError: list index out of range

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.