Parse the number of Google search results as JSON

OpenAI data extraction: <div id="result-stats">About 953,626,112 results<nobr> (1.29 seconds)&nbsp;</nobr></div> to { "total_results": 953626112, "time_taken_displayed": 1.29 }.

Prompt
1. "<div id="result-stats">About 1,800,0020,000 results<nobr> (0.589 seconds)&nbsp;</nobr></div>"
2. "<div id="result-stats">About 953,626,112 results<nobr> (1.29 seconds)&nbsp;</nobr></div>"
3. "<div id="result-stats">Ungefähr 1.240.000.000 Ergebnisse<nobr> (0,72 Sekunden)&nbsp;</nobr></div>"
4. "<div id="result-stats">حوالى ٢٬٣١٠٬٠٠٠٬٠٠٠ نتيجة<nobr> (٠٫٧٣ ثانية)&nbsp;</nobr></div>"

Results
1. { "total_results": 18000020000, "time_taken_displayed": 0.589 }
2. { "total_results": 953626112, "time_taken_displayed": 1.29 }
3. { "total_results": 1240000000, "time_taken_displayed": 0.72 }
4. { "total_results": 2310000000, "time_taken_displayed": 0.73 }

Links: Original blog post | OpenAI Playground

The ideal end goal is to prompt an HTML of Google SERP and receive generated (parsed) data as JSON.

P.S. For me, it feels like magic since I have no experience in the AI field.

2 Likes