python web scraping - email protected -


not using scamming! - using scam bating trying scrape emails website, output looks this:

[email protected]/* <![cdata[ */!function(t,e,r,n,c,a,p){try{t=document.currentscript||function(){for(t=document.getelementsbytagname('script'),e=t.length;e--;)if(t[e].getattribute('data-cfhash'))return t[e]}();if(t&&(c=t.previoussibling)){p=t.parentnode;if(a=c.getattribute('data-cfemail')){for(e='',r='0x'+a.substr(0,2)|0,n=2;a.length-n;n+=2)e+='%'+('0'+('0x'+a.substr(n,2)^r).tostring(16)).slice(-2);p.replacechild(document.createtextnode(decodeuricomponent(e)),c)}p.removechild(t)}}catch(u){}}()/* ]]> */ 

here code:

import requests bs4 import beautifulsoup  r = requests.get("https://forum.419eater.com/forum/viewforum.php?f=18", headers={'user-agent': 'mozilla/5.0'})  soup = beautifulsoup(r.content, "html.parser")  link in soup.find_all("a"):     print(link.text) 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -