pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

yes, they always cache

Читать полностью…

Offtopic

yaa so this meta tags are for the other platforms and they keep cache value of those rather making request to my server always to get the images right?

Читать полностью…

Offtopic

you say like showing the image and little information about my website from the meta's og's title, descritipon is just for showing this when link pasted in the message, and for htis i will just use these meta tags in my base.html then i am fully ready no problem at all i am fully right now?

Читать полностью…

Offtopic

if you remove it, it's a pretty bad UX.

Читать полностью…

Offtopic

Thanks BTW, i need to rethink and learn about using this thigns and then again need to think about using this later...

Читать полностью…

Offtopic

most HTML pages are auto generated. nobody handrolls those tags.

Читать полностью…

Offtopic

don't over engineer things

Читать полностью…

Offtopic

not more than CPP though

Читать полностью…

Offtopic

While exploring web development and building my own website, I came across these meta tags:

<meta property="og:title" content="Free API" />
<meta property="og:description"
content="Free information about the api" />
<meta property="og:url" content="https://example.com" />

When i was exploring web to make my own website, i found this upper also need to give, and then after i researched i foudn this is graph protocol.

After doing some research, I found out that these are Open Graph (OG) meta tags.
As I understand it, when I share my website URL on platforms like Telegram, WhatsApp, Facebook, etc., these tags are used to generate the link preview — such as the title, description, URL, and sometimes an image. Is that correct? 🤔
My main question is about local development. 🚀
Since I'm currently developing my website on localhost, social media platforms obviously can't access my localhost URL, so I can't see how the actual link preview will look.
👉 How do you guys test Open Graph link previews while developing locally?

Читать полностью…

Offtopic

😭😂 This is so kind of you

Читать полностью…

Offtopic

I saw "main.js" for a brief moment

Читать полностью…

Offtopic

mate, you should've learned English first before programming.

Читать полностью…

Offtopic

It the only way to know what you are allowed to do and what not

Читать полностью…

Offtopic

what it means, i see i found some converter like api that coming in js fetch if i get those link and did post req to the server from the python and the api give me response backe without any Authorization token, it means what they server data publically , is not the responsibility of the api developer of that website to keep banned sending request without any x-headers like authorised token?

Читать полностью…

Offtopic

His English is very difficult to understand as well.

Читать полностью…

Offtopic

let me try to refrzing

Читать полностью…

Offtopic

Is it me or is your English so bad?

Читать полностью…

Offtopic

It doesn't work like that, user won't request the image directly only the meta/x/whatever crawler and will be cached

Читать полностью…

Offtopic

Most sites use opengraph cause you don't want your site's embedding to load blank.

Читать полностью…

Offtopic

Your million concern makes less sense.

Читать полностью…

Offtopic

i though that but i will need to add about 5 lines of og title, descriotm, url and so on, so i found this is not any necessary to give in my application as this only overload the rendering meantime and for 1 million user it will be around 1 gb bandwidth, just for showing one image in the social media message how bad this meta>og things are so

Читать полностью…

Offtopic

whaat? it's only a few bytes

Читать полностью…

Offtopic

yaa this is not any important thigns i found rather storing this meta og tags in all the response is just a waste of bandwidth i found, so rahter not to use this i found this

Читать полностью…

Offtopic

Yeah, I myself go to bed after 1am most nights.

Читать полностью…

Offtopic

but it transpired to be a main.rs

Читать полностью…

Offtopic

first day learning Rust, am I making UB?

Читать полностью…

Offtopic

yaa i will try to found the docs of those surely 😅

Читать полностью…

Offtopic

Go to their API docs
READ

Читать полностью…

Offtopic

It could be considered as the same as breaking into some other people houses

Definetly illegal

Читать полностью…

Offtopic

In that case, unauthorized access falls into the gray area and mostly illegal.

Читать полностью…
Subscribe to a channel