. Вот js код:
<script type="text/javascript"> var transl_next_page='Следующая страница'; var prevLink = true; var nextLink = true; var nextChapterLink = "/noblesse/vol8/473"; // var ads = "" var servers = ['http://e4.postfact.ru/','http://e2.postfact.ru/','http://e3.postfact.ru/','http://e5.postfact.ru/','http://e1.postfact.ru/','http://e6.postfact.ru/','http://e7.postfact.ru/','http://e8.postfact.ru/']; function sendExternalSize(divH, w) { } function sendURL(path) { } rm_h.init( [['auto/22/58','http://e6.postfact.ru/',"/42/Noblesse_ch471_00.png_res.jpg",690,703],['auto/22/58','http://e7.postfact.ru/',"/42/Noblesse_ch471_01.png_res.jpg",690,19200],['auto/22/58','http://e5.postfact.ru/',"/42/Noblesse_ch471_02.png_res.jpg",690,19200],['auto/22/58','http://e2.postfact.ru/',"/42/Noblesse_ch471_03.png_res.jpg",690,18748],['auto/22/58','http://e8.postfact.ru/',"/42/Noblesse_ch471_04.png_res.jpg",690,20765],['auto/22/58','http://e6.postfact.ru/',"/42/Noblesse_ch471_05.png_res.jpg",690,17600],['auto/22/58','http://e3.postfact.ru/',"/42/Noblesse_ch471_06.png_res.jpg",690,10522]], 0, false); </script>
Вот код через которые получаю js.
from bs4 import BeautifulSoup import os, requests def readmanga(url, download=0, filename=False): name1 =url.split('/')[2] r = requests.get(url) soup = BeautifulSoup(requests.get(url).text, 'lxml') name = 'MANGA'+os.sep+name1+os.sep+soup.find('span', {'class': 'name'}).text aray1 = soup.find('table', {'class': 'table table-hover'}).find_all('a') aray=[] for link in aray1: aray.append('http://'+name1+link.get('href')) soup = BeautifulSoup(requests.get(aray[1]).text, 'lxml') aray1 = soup.find_all('script', {'type': 'text/javascript'})[8] print(aray1)