Project JSON modification — Topic


#204

Wow! Thank you so much for that! I tried getting the request with both Charles and Fiddler (web proxies), but I couldn’t. How did you find these endpoints?


#205

Charles app.


#206

thats what i had planned :p
idk if itll work though bc flas k


#207

quick i need a project link
fast


#208

2 hours later

Here’s one from like 2013

c.gethopscotch.com/p/testing


#209

doesnt matter
i tried to get webplayer in a codepen but i couldnt figure it out
also any idea who any56 is


#210

Well, the page layout is HTML, I use Flas k and Python to get all the data and then send the variables to a HTML file. You should be able to modify it using plain HTML and CSS as you’d usually do.


#211

so JS is supported?
this gon be e z then


#212

Absolutely. Everything that HTML supports.


#214


here ya go


#215

Thank you! I´ll make sure to give you credit when I publish the extractor!


#216

No problem! yyou dont need to give me credit because i literally just looked at the iframe embed thing from the website :p
the template to embed the player is

<iframe src="https://c.gethopscotch.com/e/<project uuid here>" width="640" height="480" frameborder="0" 
scrolling="no"></iframe> 

and while typing that, I realized that iframes can be embedded in discourse posts, so i can do this:

it works just like on the website.


#217

Wait I wasn’t able to do that earlier


#218

you have to do it as an iframe
just use the embed link from the website
idk maybe they updated discourse
you can embed codepens with the link and they are interactive as well

quote this


#219

Yeah that’s what I did.


#220

apparently only some iframes work
the one for codepen doesnt


#221

It works for me. By the way, do you know what the height and width values should be so that the iframe looks good?


#222

i dunno i just left them at the default
theyre measured in pixels (i assume) so you might need to do some css, but you shouldnt have to
just adjust it until it looks right, keep the same ratio though
can you use git on pythonanywhere?


#223

I don´t really know about git, but I managed to embed the webplayer and it looks amazing! Thank you so much!

You can unzip files on PythonAnywhere though, so I could just use git on my computer and the compress the result if I´d have to get something from github. Or are you talking about what to do if you want to self-host this?


#224

i’m talking about putting stuff on github so people can for k it and help fix bugs and stuff
and maybe self host if they want idk
you should be able to use git push
why does kbd work better than code format
you dont have to if u dont want to idc just a suggestion :man_shrugging: