How to query an advanced search with google customsearch API?

前端 未结 3 1234
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 14:53

How can I programmatically using the Google Python client library do an advanced search with Google custom search API search engine in order to return a list of first n

3条回答
  •  情歌与酒
    2021-02-05 15:30

    This is late but hopefully it helps someone...

    For advanced search use

    response=service.cse().list(q="mysearchterm", 
    cx="017576662512468239146:omuauf_lfve", ).execute()
    

    The list() method takes in more args to help advance your search... check args here: https://developers.google.com/custom-search/json-api/v1/reference/cse/list

提交回复
热议问题