add WPChange
This commit is contained in:
@@ -2,7 +2,7 @@ from bs4 import BeautifulSoup
|
||||
from urllib.parse import urlparse
|
||||
import requests, os, logging, re, json
|
||||
|
||||
class WPRemove:
|
||||
class WPChange:
|
||||
# Constructor
|
||||
def __init__(self, index_name=1, number_thread=1, logger=None, parser="html.parser"):
|
||||
self._name = "Thread-{0}".format(index_name)
|
||||
@@ -76,5 +76,8 @@ class WPRemove:
|
||||
content = f.read()
|
||||
soup = BeautifulSoup(content, self._parser)
|
||||
img = soup.find_all("img")
|
||||
for i in img:
|
||||
src = i.get("src")
|
||||
self._logger.info(src)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user