Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandhunt committed Feb 22, 2020
1 parent 5c0842b commit 4f3a87f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -13,6 +13,7 @@
import importlib.util

ext_py_mod_url = os.environ['MORPH_GET_SCRIPT_URL']
max_prods = os.environ['MORPH_MAX_PRODS']

r = requests.get(ext_py_mod_url)
jsonpy = json.loads(r.content)
Expand All @@ -29,4 +30,4 @@
newcont = newcont + cont
#print(cont)
exec(newcont, helper.__dict__)
exec('mainfunc(2000)', helper.__dict__)
exec('mainfunc(' + int(max_prods) + ')', helper.__dict__)

0 comments on commit 4f3a87f

Please sign in to comment.