roflmuffin / node-anime-scraper

Scrapes information from Gogoanime to get Anime, Episode & Video information & urls.
60 stars 14 forks source link

Animes containing at (@) symbol pull through obfuscated #10

Closed roflmuffin closed 8 years ago

roflmuffin commented 8 years ago

Titles containing an at symbol (example: The iDOLM@STER) pull through as a HTML script tag rather than the name (see below)

[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){}}()/* ]]> */

Seems to be caused by a CloudFlare feature that obfuscates email addresses, however is falsely registering these anime names as email addresses.