Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since the Disqus embed is a javascript embed, the comments won't be available in the page source unless the site renders them there. If you're scraping the page and letting the javascript render, then the first page (up to 50 comments) are available within the Disqus iFrame within the "postCompatContainer" DIV.</p> <p>However, I'd instead suggest using the Disqus API to accomplish this. There's two main parts to this:</p> <ol> <li><strong>Get the thread information from the article</strong></li> </ol> <p>Specifically in the page source you have to find the variables 'disqus_shortname' and 'disqus_identifier' or 'disqus_url'. If 'disqus_identifier' or 'disqus_url' aren't available, then you can try using the window location address, but this is less reliable.</p> <ol> <li><strong>Make the API call with that data.</strong></li> </ol> <p>Specifically you'll want to use our <a href="http://disqus.com/api/docs/threads/listPosts/" rel="nofollow">threads/listPosts</a> endpoint passing the 'disqus_shortname' as the 'forum' and the identifier or url as 'thread=ident:' or 'thread=link:', respectively.</p> <p>I won't go into the specifics of using the API here, but we have a good starter tutorial here: <a href="http://help.disqus.com/customer/portal/articles/1131783-tutorial-get-comment-counts-with-the-api" rel="nofollow">http://help.disqus.com/customer/portal/articles/1131783-tutorial-get-comment-counts-with-the-api</a></p> <p>and more examples here: <a href="https://github.com/disqus/DISQUS-API-Recipes" rel="nofollow">https://github.com/disqus/DISQUS-API-Recipes</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload