Scraping suggests of Youtube

Discussion in 'Share Experience' started by Support, Sep 28, 2015.

  1. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,547
    Likes Received:
    2,164
    How to parse suggests of Youtube - this question frequently asked in technical support. Therefore, the following is an example of how to do it.
    [​IMG]
    Code:
    eyJwcmVzZXQiOiJZb3V0dWJlIHN1Z2dlc3RzIiwidmFsdWUiOnsicHJlc2V0Ijoi
    WW91dHViZSBzdWdnZXN0cyIsInBhcnNlcnMiOltbIk5ldDo6SFRUUCIsImRlZmF1
    bHQiLHsidHlwZSI6Im92ZXJyaWRlIiwiaWQiOiJxdWVyeWZvcm1hdCIsInZhbHVl
    IjoiaHR0cHM6Ly9jbGllbnRzMS5nb29nbGUuY29tL2NvbXBsZXRlL3NlYXJjaD9j
    bGllbnQ9eW91dHViZSZobD11YSZnbD1ydSZkcz15dCZxPSRxdWVyeSJ9LHsidHlw
    ZSI6ImN1c3RvbVJlc3VsdCIsInJlc3VsdCI6ImRhdGEiLCJyZWdleCI6IltcXFt8
    LF1cXFtcIiguKz8pXCIsIiwicmVnZXhUeXBlIjoic2ciLCJyZXN1bHRUeXBlIjoi
    YXJyYXkiLCJhcnJheU5hbWUiOiJzdWdnZXN0cyIsInJlc3VsdHMiOlsic3VnZ2Vz
    dCJdfV1dLCJyZXN1bHRzRm9ybWF0IjoiWyUgRk9SRUFDSCBwMS5zdWdnZXN0cztc
    bnRvb2xzLnF1ZXJ5LmFkZChcImh0dHBzOi8vY2xpZW50czEuZ29vZ2xlLmNvbS9j
    b21wbGV0ZS9zZWFyY2g/Y2xpZW50PXlvdXR1YmUmaGw9dWEmZ2w9cnUmZHM9eXQm
    cT1cIl8gc3VnZ2VzdCwgMik7XG5FTkQgJV0kcDEuc3VnZ2VzdHMuZm9ybWF0KCck
    c3VnZ2VzdFxcbicpIiwicmVzdWx0c1NhdmVUbyI6ImZpbGUiLCJyZXN1bHRzRmls
    ZU5hbWUiOiIkZGF0ZWZpbGUuZm9ybWF0KCkudHh0IiwiYWRkaXRpb25hbEZvcm1h
    dHMiOltdLCJyZXN1bHRzVW5pcXVlIjoibm8iLCJxdWVyeUZvcm1hdCI6WyIkcXVl
    cnkiXSwidW5pcXVlUXVlcmllcyI6dHJ1ZSwic2F2ZUZhaWxlZFF1ZXJpZXMiOmZh
    bHNlLCJpdGVyYXRvck9wdGlvbnMiOnsib25BbGxMZXZlbHMiOmZhbHNlLCJxdWVy
    eUJ1aWxkZXJzQWZ0ZXJJdGVyYXRvciI6ZmFsc2V9LCJyZXN1bHRzT3B0aW9ucyI6
    eyJvdmVyd3JpdGUiOmZhbHNlfSwiZG9Mb2ciOiJkYiIsImtlZXBVbmlxdWUiOiJO
    byIsIm1vcmVPcHRpb25zIjpmYWxzZSwicmVzdWx0c1ByZXBlbmQiOiIiLCJyZXN1
    bHRzQXBwZW5kIjoiIiwicXVlcnlCdWlsZGVycyI6W10sInJlc3VsdHNCdWlsZGVy
    cyI6W10sImNvbmZpZ092ZXJyaWRlcyI6W119fQ==
    In this preset allows you to set your language and country settings, and substitute parsed suggests back to the query (Parse to level).
    • Language (hl=) and the country (gl=) defined by symbol of two letters (on the screenshot in blue color)
    • The depth of the parsing is set in Result format by number, similar to option Parse to level (on the screenshot is red). To implement this function is used instruments of template engine Template Toolkit.
    • It is advisable to use a query unique
    • You can also turn on the unique of results
    As a result, we get a file with all suggests of Youtube.
     

Share This Page