add WPChange

This commit is contained in:
2023-06-10 01:58:08 +02:00
parent c631909cb6
commit 16368c13bb
2 changed files with 33 additions and 2 deletions

View File

@@ -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)