Skip to content

Commit

Permalink
added new lines to fix linting erros
Browse files Browse the repository at this point in the history
  • Loading branch information
waseem-polus committed Nov 30, 2023
1 parent 378caeb commit cd2af8c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scrapers/scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def link(link: str):
print("Not a Craigslist nor a Facebook Marketplace link")

if __name__ == "__main__":
app()
app()
2 changes: 1 addition & 1 deletion scrapers/src/craigslist.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def scrapeListing(url):
print(f"Failed scraping {url}")

# Close the Selenium WebDriver instance
browser.quit()
browser.quit()
1 change: 1 addition & 0 deletions scrapers/src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import pymongo
import os
from datetime import date

db = "scrape"
collection = "scraped_raw"

Expand Down
2 changes: 1 addition & 1 deletion scrapers/src/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ def scrapeListing(url):
return -1

# Close the Selenium WebDriver instance
browser.quit()
browser.quit()
3 changes: 1 addition & 2 deletions scrapers/src/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from . import database as db

from . import craigslist
from . import facebook

Expand Down Expand Up @@ -65,4 +64,4 @@ def scrape(website, scraperVersion):
except Exception as error:
print(error)

browser.quit()
browser.quit()

0 comments on commit cd2af8c

Please sign in to comment.