Skip to content

Follow Pinterest URL schemes #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IkelAtomig opened this issue Jul 19, 2023 · 19 comments
Open

Follow Pinterest URL schemes #13

IkelAtomig opened this issue Jul 19, 2023 · 19 comments

Comments

@IkelAtomig
Copy link

Hello, I am a member of Libredirect Extension team. We are trying to support redirections from Pinterest to Binternet but you don't follow the URL schemes.

It would be better if you follow them and also easy for us and users to use your services. So, Many public instances will be up and could see the images privately.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jul 19, 2023

Hello! I would be happy to help! What do you mean specifically?

For example Pinterest has the following URL for queries: https://www.pinterest.com/search/pins/?q=hello%20world
For Binternet this would be: https://binternet.instance.tld/search.php?q=hello%20world

For images/pins, the URL scheme Binternet uses is: https://binternet.ahwx.org/image_proxy.php?url=https://i.pinimg.com/originals/f0/1d/a0/f01da0c6a297c2cff502f238ac5645e0.jpg
Pinterest uses the following: https://www.pinterest.com/pin/472666923407902169/.

Do you mean I should make it so the search and the image "showcase" URL schemes of Pinterest would work on Binternet?

Looking forward to a reply
Ahwx

@IkelAtomig
Copy link
Author

Do you mean I should make it so the search and the image "showcase" URL schemes of Pinterest would work on Binternet?

Yes.

I meant it should be same URL but different domain. I hope you know about the Piped project. A
Frontend for YouTube. If not, you could look them on Github at TeamPiped/Piped.

What they do is for example, turns https://youtu.be/pKUgt7-HaoE to https://piped.video/pKUgt7-HaoE.

Literally every URL is same just the domain name is different.


I noticed your own URL Schemes but it would be a wreckage to support for certain functionalities we provide in the extensions. That is why we are asking you to match the actual schemes.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jul 20, 2023

Alright! I will try that, don't expect it soon though, I'm leaving for 10 days in a few hours and I currently have no idea how to support the URL schemes you seem to be looking for, so it'll take some time.

@IkelAtomig
Copy link
Author

That is not a problem. We will insert it in new release after you finished working on it.

@IkelAtomig
Copy link
Author

Any updates ?

@Ahwxorg
Copy link
Owner

Ahwxorg commented Sep 1, 2023

I don't really know how I would implement this.

@IkelAtomig
Copy link
Author

Maybe look at other Frontend projects such as Nitter, Invidious, Piped, Libreddit, etc. You might get an idea.

@IkelAtomig
Copy link
Author

Not urging. But if it would take time. We shall work on it slowly.

@codedipper
Copy link
Contributor

codedipper commented Sep 2, 2023

Not urging. But if it would take time. We shall work on it slowly.

It runs from pure PHP files, so you have to do some nginx magic to run code from that file on the right path.

@realroot2185
Copy link

For images/pins, the URL scheme Binternet uses is: https://binternet.ahwx.org/image_proxy.php?url=https://i.pinimg.com/originals/f0/1d/a0/f01da0c6a297c2cff502f238ac5645e0.jpg Pinterest uses the following: https://www.pinterest.com/pin/472666923407902169/.

How do you get the converted link?
If one has Pintarest link how can I get Binternet's version?

How convert collections?
They are in this format https://www.pinterest.com/<author>/<collectio>/.

@IkelAtomig
Copy link
Author

@realroot2185 That's the problem. Binternet wasn't made with that in mind. The author of Binternet is trying to implement it.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 4, 2024

The author of Binternet is trying to implement it.

No, I am just depressed.

@IkelAtomig
Copy link
Author

@Ahwxorg We are sorry to hear that. Please take care of yourself and work on it when you are back to your normal self.

@realroot2185
Copy link

Sorry to hear that.

Is there any relation to the Binternet and Pintarest link?
So that one can convert it, running some script or something.

@IkelAtomig
Copy link
Author

There will something definitely but we need to analyze it in a calm way.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 4, 2024

From what I remember it's something based on the image ID on Pinterest itself.

1 similar comment
@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 4, 2024

From what I remember it's something based on the image ID on Pinterest itself.

@IkelAtomig
Copy link
Author

IkelAtomig commented Jan 4, 2024

From what I remember it's something based on the image ID on Pinterest itself.

That's what I thought too. But image ID is basically in the html code not in URL though.

@Ahwxorg
Copy link
Owner

Ahwxorg commented Jan 6, 2024

Could be that it is the pining ID, obtained through the request URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants