I'm scrapping a web site using python 3.5 (Beautifulsoup). I can read everything in the source code but I've been trying to retrieve the embedded comments from disqus with no success (which is a reference to a script).
The piece of the html code source looks like this:
var disqus_identifier = "node/XXXXX";
script type='text/javascript' src='https://disqus.com/forums/siteweb/embed.js';
the src sends to a script function.
I've read the suggestions in stackoverflow, using selenium but I had a really hard time to make it work with no success. I understand that selenium emulates a browser (which I believe is too heavy for what I want). However, I have a problem with the webdrivers, it is not working correctly. So, I dropped this option.
I would like to be able to execute the script and retrieve the .js with the comments. I found that a possible solution is PyV8. But I can't import in python. I read the posts in internet, I googled it, but it's not working.
I installed Sublime Text 3 and I downloaded pyv8-win64-p3 manually in:
C:\Users\myusername\AppData\Roaming\Sublime Text 3\Installed Packages\PyV8\pyv8-win64-p3
But I keep getting:
ImportError: No module named 'PyV8'.
If somebody can help me, I'll be very very thankful.