Menu

125 FAQ questions on our site, 125 distinct strings, and two pages that ask the same four questions
📰

125 FAQ questions on our site, 125 distinct strings, and two pages that ask the same four questions

DEV Community: nextjs·Daniel Pertu·about 14 hours ago
#YeJQdBYd
#devtonextjs#devto#dev#pages#notifio
Reading 0:00
15s threshold

Notifio's site is 38 pages about a desktop app that watches rental search pages. Most of those pages end in a question block, and the questions are typed data rather than markup, so the visible accordion and the FAQPage structured data are built from the same array.

I pulled the JSON-LD out of all 38 live pages and counted.

The census

for block in re . findall ( r '<script type="application/ld\+json"[^>]*>(.*?)</script>' , h , re . S ) : d = json . loads ( html . unescape ( block ) ) nodes = d . get ( "@graph" , [ d ] ) for n in nodes : if n . get ( "@type" ) == "FAQPage" : for e in n [ "mainEntity" ] : questions . append ( ( page , e [ "name" ] ) )

Enter fullscreen mode

Exit fullscreen mode

125 questions, on 30 of 38 pages

125 distinct question strings.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.