from requests_html import HTMLSession, HTML import base64 session = HTMLSession() code = b'x = "hello world"\nprint(x)' code = base64.b64encode(code) params = { 'colors': 'midnight', 'background': 'true', 'darkMode': 'true', 'padding': '16', 'title': 'hello', 'code': code, 'language': 'python', } url = 'https://ray.so/' r = session.get(url, params=params) print(r.url) html: HTML = r.html html.render()
made this but only makes a link not the image I need to get the image from the link generated in this code.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
made this but only makes a link not the image I need to get the image from the link generated in this code.