Wednesday, 19 June 2019

python ssl certificate_verify_failed

python ssl certificate_verify_failed


Solution

$ pip install --upgrade certifi
$ open /Applications/Python\ 3.6/Install\ Certificates.command



Saturday, 2 March 2019

scrapy no module named _util

scrapy no module named _util


Solution


$ sudo pip install pyopenssl --user --upgrade

Friday, 28 July 2017

javascript enable website(browser) select text

Javascript enable website(browser) select text


Solution:

paste the code below into console of browser

javascript:(function(){function ats(){var styles='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';jQuery('head').append(jQuery('<style />').html(styles));var allowNormal=function(){return true;};jQuery('*[onselectstart], *[ondragstart], *[oncontextmenu], #songLyricsDiv').unbind('contextmenu').unbind('selectstart').unbind('dragstart').unbind('mousedown').unbind('mouseup').unbind('click').attr('onselectstart',allowNormal).attr('oncontextmenu',allowNormal).attr('ondragstart',allowNormal);}function atswp(){if(window.jQuery){ats();}else{window.setTimeout(atswp,100);}}if(window.jQuery){ats();}else{var s=document.createElement('script');s.setAttribute('src','http://code.jquery.com/jquery-1.9.1.min.js');document.getElementsByTagName('body')[0].appendChild(s);atswp();}})();


Reference:

https://stackoverflow.com/questions/7101982/enabling-blocked-text-selection-using-javascript