Skip to content
Snippets Groups Projects
Commit 36e76935 authored by Andreas Nordberg's avatar Andreas Nordberg
Browse files

Strukturerade lite

parent b5454e0f
No related branches found
No related tags found
No related merge requests found
Showing
with 8974 additions and 0 deletions
{
"CurrentProjectSetting": null
}
\ No newline at end of file
{
"TestFramework": "Pytest"
}
\ No newline at end of file
{
"ExpandedNodes": [
"",
"\\CoopClassifier",
"\\GammaltCoop"
],
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
File added
File added
print ('foo')
\ No newline at end of file
import requests
import json
#Recept och dess ingredienser ska anv�ndas => Ladda ner listan med api -> anv�nd listan f�r att ladda ner mer info om varje recept -> spara denna infon i en submapp
def getRecipeListJSON():
# max pagesize är 255 även om man anger mer, och om man anger mer så blir det konstigt när man anger sidnummer. => 34 sidor. Skapa loop med 0 <= i <= 34. mergea resultaten på något sätt.
return requests.get('https://www.coop.se/ws/v2/coop/users/anonymous/carts/5715b2f3-4a6b-4da7-9612-07f88cfcdb09/recipes/?pageSize=9999')
def saveRecipesToSubfolder():
# json = getRecipeListJSON() # if fetching from online
data = json.load(open('RecipeList.json'))
return
saveRecipesToSubfolder()
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment