Merge pull request #10078 from projectdiscovery/fix-script-wp-flow

Update wordpress-plugins-update.py
patch-4
Dhiyaneshwaran 2024-06-20 12:05:57 +08:00 committed by GitHub
commit 22d3c84b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ for page_number in range(1, 11):
# Parse HTML # Parse HTML
soup = BeautifulSoup(html, 'html.parser') soup = BeautifulSoup(html, 'html.parser')
results = soup.find(class_="plugin-cards") results = soup.find(id="main")
articles = results.find_all("div", class_="plugin-card") articles = results.find_all("article", class_="plugin-card")
# Setting the top tag # Setting the top tag
top_tag = "top-100,top-200" if page_number <= 5 else "top-200" top_tag = "top-100,top-200" if page_number <= 5 else "top-200"