Code Monkey home page Code Monkey logo

hellofresh-tandoor-converter's Introduction

HelloFresh-Tandoor-Converter

Jupyter-Notebook for retrieving all hellofresh recipes and importing them into Tandoor via the API

To make this work, you need to insert your base-url and insert the API key available at <BASE_URL>/settings/#api

This is based on the german HelloFresh version! You need to change the locale and country in the second cell to e.g. en-US and en and translate the spice conversion (there is a dict that maps each spice to the ingredients and adds this to the note in all recipes.)

This project might break at any point in the future :) Pull requests are welcome ;)

https://github.com/TandoorRecipes/recipes/

Spices to ingredients from https://github.com/Schischu/hello_fresh_gewuerze <3

hellofresh-tandoor-converter's People

Contributors

baswag avatar jfeil avatar

Stargazers

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

Watchers

 avatar  avatar

hellofresh-tandoor-converter's Issues

Error when running Notebook

Possible that the Code is broken?
Cant get it to work :/

Error i get:

`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Input In [2], in <cell line: 43>()
38 self._request_new_token()
40 return self._access_token
---> 43 default_bearer = _Bearer()
46 def request_recipes(offset=0, limit=250):
47 headers = {'Authorization': f'Bearer {str(default_bearer)}'}

Input In [2], in _Bearer.init(self)
17 def init(self):
18 self._access_token = ""
---> 19 self._request_new_token()

Input In [2], in _Bearer._request_new_token(self)
22 answer = requests.get('https://www.hellofresh.com/recipes/')
23 self._cookies = answer.cookies
---> 24 token_answer = re.search("{tokenType.*}}", answer.text).group()
25 return_dict = {}
26 for element in token_answer.split(','):

AttributeError: 'NoneType' object has no attribute 'group'`

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.