Project JSON modification — Topic


#308

Yes, they are



#309

Thanks


#310

By the way I’m using Google Sites @William04GamerA


#311

Now really, the important question here is: is it possible to view these project files without opening iTunes? I can’t test because I don’t have an iPad with Hopscotch anymore. :(

I know Apple is really tight with their security though, so I’m 99% sure the data is in a different file encoding, or it’s hidden by some other admin protocol. @BuildASnowman I’m asking you because you made that piano project hack and generated the code with Mathematica - would you know if a Python script could work around these constants and fetch app data?

EDIT: I think I was a little too ambitious when writing this post - sorry @BuildASnowman for the unnecessary tag… awkwardd. I’d delete the tags if the forum let me take them back. I bet there’s a way to link some sort of Cydia module to bypass those perms quickly though.

(Sorry yall, completely unrelated to fetching featured projects… its really cool that it’s actually possible!)

Gosh, 4 edits to such a minor post…


#312

@William04GamerA Just asking, what are you writing your program on? Python?


#313

Yes, I am writing it in Python. I’m using the micro web framewor k Flas k (for Python) for powering the website itself.


#314

@William04GamerA Do you have a link where we can view your progress so far? I believe it’s really cool that you are doing this project!


#315

No, not yet. I am working on it. I can post some screenshots. Expect a first demo sometime next week. But because of the fact that Christmas is upcoming, I have some other projects.

I also have to ask THT for permission to do this before I release the project. Otherwise, it will have to stay private.

What I’ve done now is successfully parsed all the projects and displayed them one-by-one. I want to implement a grid view instead, and then start working on the functionality of liking projects and more using @Petrichor’s API-key.


#316


This is a screenshot of the current web page zoomed out by 50%.


#317

@Petrichor, I would need the api_key for the user in order to do stuff like viewing categories. I think that you know what you´re doing, so I don´t need to explain how you get these values more than that you have to go to a tab like #art (I am not sure exactly which tabs that need authorization).

Here is a screenshot from Telerik Fiddler 4 (an application that works similar to Charles, if you are using that to capture web traffic) so you can understand what I am talking about (if you don´t already do):


#318

4f7769439adf7ef8e482d2daef77375cd6d0158b65fcdca543b74b5c0c92
I think it’s all except featured and trending, but I didn’t really pay attention when I checked a while ago


#319

Thank you so much! :slight_smile:


#320

Hmm… Is this an error in the way I format URLs, or is the data provided invalid?
Log outfput: Couldn´t parse JSON with response: Incorrect user id or auth token. Request URL: https://c.gethopscotch.com/api/v2/categories/art/newest?api_token=4f7769439adf7ef8e482d2daef77375cd6d0158b65fcdca543b74b5c0c92&user[id]=4753230&user[auth_token]=qKok4lCx8YB9Wgp+o862AA==&page=1.


#321

Try https://c.gethopscotch.com/api/v2/categories/art/newest?api_token=4f7769439adf7ef8e482d2daef77375cd6d0158b65fcdca543b74b5c0c92&page=1&user[auth_token]=qKok4lCx8YB9Wgp%2Bo862AA%3D%3D&user[id]=4753230


#322

Thank you. I’ll see if I have made some mistake in my code.


#323

@awesomeonion, does the title of a draft exist in the JSON file or do you have to get it via the metadata files?


#324

Meta probably, you can only see the ID that will eventually become the web URL ( /p/[id] )


#325

It used to, but not anymore. I think you’ll need to use metadata files.


#326

Is there a way to falafel code using the .json file?

If you added some chickpeas to the Game Start function, would it turn into the Middle Eastern dish?

Just wondering.


#327

Yes that would work.