Skip to content

Instantly share code, notes, and snippets.

@zhoulujue
zhoulujue / universal_search_with_tanx_in_pos2.json
Created April 17, 2018 03:16
Universal search with tanx advertisement in position 2.
{
"count": 1,
"content": [{
"content": {
"kind": 1123,
"track_host": "https://track.xiachufang.com",
"track_info": "https://track.xiachufang.com/search_click.gif?location=%2Fsearch%2F%3Fkeyword%3D%25E8%258A%25A6%25E7%25AC%258B&event_id=recipe_search_click&neighbor_url_list=%5B%22%2Frecipe%2F1000810%2F%22%2C%22%2Frecipe%2F1088623%2F%22%2C%22%2Fsearch_tanx_ad%2F0%22%2C%22%2Frecipe%2F100301588%2F%22%2C%22%2Frecipe%2F257932%2F%22%5D&sub_pos=0&pos=2&target=%2Fsearch_tanx_ad%2F0",
"track_param": {
"location": "/search/?keyword=%E8%8A%A6%E7%AC%8B",
"event_id": "recipe_search_click",
@zhoulujue
zhoulujue / tree.md
Created November 9, 2013 01:44 — forked from hrldcpr/tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!