fix warning
This commit is contained in:
parent
b25249cb29
commit
c12341cd4b
@ -6,9 +6,9 @@ import webbrowser
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
import re
|
import re
|
||||||
import io
|
import io
|
||||||
from PIL import Image,ImageTk
|
from PIL import ImageTk
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from tkinter import Label,Button,Frame,Tk,Entry,StringVar,LEFT,RIGHT,PhotoImage,Image,Scrollbar,VERTICAL,Canvas,Y,BOTH,NW
|
from tkinter import Label,Button,Frame,Tk,Entry,StringVar,LEFT,RIGHT,Scrollbar,VERTICAL,Canvas,Y,BOTH,NW
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -239,10 +239,10 @@ def parse_emmission(URL):
|
|||||||
parse=BeautifulSoup(html,"html.parser")
|
parse=BeautifulSoup(html,"html.parser")
|
||||||
divcasting=parse.select_one(".descriptif")
|
divcasting=parse.select_one(".descriptif")
|
||||||
casting=divcasting.find_all(href=re.compile("biographie"))
|
casting=divcasting.find_all(href=re.compile("biographie"))
|
||||||
i=0
|
count=0
|
||||||
for actor in casting:
|
for actor in casting:
|
||||||
casting[i]=actor.text
|
casting[i]=actor.text
|
||||||
i+=1
|
count+=1
|
||||||
divsynopsis=parse.select_one(".episode-synopsis")
|
divsynopsis=parse.select_one(".episode-synopsis")
|
||||||
img=divsynopsis.find_next('img')['data-src']
|
img=divsynopsis.find_next('img')['data-src']
|
||||||
synopsis=divsynopsis.select_one(".d-b").text
|
synopsis=divsynopsis.select_one(".d-b").text
|
||||||
|
Loading…
Reference in New Issue
Block a user