Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request for review #1

Open
wants to merge 1 commit into
base: pak_wheels
Choose a base branch
from
Open

Conversation

muhammadadeeltajamul
Copy link
Owner

No description provided.

price = get_array_attribute_safely(dictionary, "offers", "price")
currency = get_array_attribute_safely(dictionary, "offers",
"priceCurrency")
if price is not None and currency is not None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be refactored as
if price and currency
no need of not None



class PakWheelsCrawler(scrapy.Spider):
"""This class is used to crawl website using

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use correct format

to start crawl
"""

used_cars_url = "https://www.pakwheels.com/used-cars/search/"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a constant for https://www.pakwheels.com/ because it is used in multiple places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants