Urgent.News

What's breaking now, across thousands of outlets.

Tech

Threads Keyword Search Without App Review: Monitor in Python

Without app review, Meta's Threads keyword_search endpoint only searches posts owned by the authenticated user. Public posts become searchable only after Meta approves your app for the threads_keyword_search permission. To monitor public keywords before (or instead of) that approval, read the public search page at threads.com/search?q=… and dedupe posts by their code between runs. That is the…

Threads keyword_search function only examines posts created by the account that is signed in. Public posts are only searchable after the Meta app is approved for threads_keyword_search permission. Until then, the only way to monitor those posts is by inspecting the public search page. Once approved, you can use the official keyword_search API endpoint.

It requires two permissions: threads_basic and threads_keyword_search. The endpoint provides date bounds and up to 100 results per page. If you cannot get app approval, you can use the public page as a workaround. The public page serves relevance-ranked and recent-first results for a given keyword. The data is embedded in JSON blocks inside script tags when the request identifies as a link-preview crawler.

The script uses a recursive function to parse the JSON blocks and extract post nodes containing code, caption, pk, and either taken_at or like_count. The script keeps track of previously seen posts using a JSON file and only prints new posts.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Shopify products.json Pagination: 250 Limit and the 25,000 Cap

To paginate a Shopify store's public /products.json , request ?limit=250&page=1 , then page=2 , and so on until the response is {"products":[]} . 250 is the most products you can get per page.

  • Shopify storefront API paginates products via /products.json endpoint
  • Each page limited to 250 products, stops at 25,000 limit
  • Empty products array signals end of results

WooCommerce Cart Not Updating? Here Are the 5 Real Causes

A shopper updates their cart quantity, hits update, and nothing happens. Or an item they removed is still sitting there. This is one of the fastest ways a store loses a sale — the shopper assumes the…

  • Page caching serves outdated cart information, causing updates to have no effect
  • AJAX and JavaScript conflicts disrupt WooCommerce's cart update functionality
  • Session and cookie issues, such as misconfigured object caching, disrupt cart data

More from Tuesday 29 September →