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

You have just saved me like this condition i got stucked there like the 🐑

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

Offtopic

oo i didn't knew this before and never listen this before, i checked today in replit to host my app for some time and use a image in meta>og>url image and then paste in tg message privately found this image shows, later i change the image link in the server and paste the anotehr new image link, but the tg shows the old message, thats why i got confused and thought this was something problem on my side, now as you say i should to check if this image will got change after 24 hour, then i will be fully ok to use meta>og tags

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

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

I hold too much power

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

Offtopic

Mostly, 24 hours TTL

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

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

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