Advertisement
Guest User

Untitled

a guest
May 24th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @app.route('/bprices')
  2. def bPrices():
  3. f = requests.get(
  4. 'https://api.hypixel.net/skyblock/bazaar?key=[cant show key]').json()
  5.  
  6. products = [
  7. {
  8. "id": product["product_id"],
  9. "sell_price": product["sell_summary"][:1],
  10. "buy_price": product["buy_summary"][:1],
  11. "sell_volume": product["quick_status"]["sellVolume"],
  12. "buy_volume": product["quick_status"]["buyVolume"],
  13. }
  14. for product in f["products"].values()
  15. ]
  16. return render_template("index.html", products=products)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement