Skip to content

Commit

Permalink
selenium projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Alter-Sitanshu committed Jun 12, 2024
1 parent 4115d17 commit bcc1e2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions property_searching/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests
from bs4 import BeautifulSoup
import scarp
import scrap

def main():
page = requests.get(url="https://appbrewery.github.io/Zillow-Clone/")
Expand All @@ -9,17 +9,17 @@ def main():
pricetag_list = soup.select(".PropertyCardWrapper__StyledPriceLine")
linktag_list = soup.select(".property-card-link")
links = [tags.attrs["href"] for tags in linktag_list]
price_list = scarp.prices(pricetag_list=pricetag_list)
price_list = scrap.prices(pricetag_list=pricetag_list)
addresses = [tags.text.strip() for tags in soup.find_all("address")]

scarp.openForm()
scrap.openForm()
for index in range(len(links)):
scarp.formFiller(
scrap.formFiller(
address=addresses[index],
price=price_list[index],
link=links[index]
)
scarp.closeForm()
scrap.closeForm()

if __name__ == "__main__":
main()

0 comments on commit bcc1e2e

Please sign in to comment.