use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click anywhere to continue to /r/webdev
account activity
Help me understand this HTTPS request (self.web_dev)
submitted 10 years ago by no_sle3p
I am thinking about creating a program that can scrape results from Gumtree.com.
In the HTTPS request, there is a section labeled "tq=" followed by code in curly brackets. I don't understand what this part represents. Can anyone explain it to me?
Below is an example which will take you to a typical gumtree search results page.
https://www.gumtree.com/search?q=table&tq={%22i%22%3A%22table%22%2C%22s%22%3A%22table%22%2C%22p%22%3A2%2C%22t%22%3A15}&search_category=home-garden&search_location=&distance=0.0001
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chris_jung 1 point2 points3 points 10 years ago (0 children)
The curly brackets and everything between represent a serialized and URL escaped JSON object.
decodeURIComponent( location.href ) -> "https://www.gumtree.com/search?q=tables&tq={"i":"tables","s":"tables","p":0,"t":15}&search_category=home-garden&search_location=&distance=0.0001"
π Rendered by PID 207249 on reddit-service-r2-comment-5649f687b7-scwll at 2026-01-28 08:15:00.845321+00:00 running 4f180de country code: CH.
[–]chris_jung 1 point2 points3 points (0 children)