-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fetch offers in categories #7
Comments
Can you paste the link here, I will look into it and will update you |
For example using the node: https://www.amazon.it/b?node=2454160031 For example search with categories keywords: I created this web server PAAPI Amazon Webserver but now I need the scraper. I suggest you to make this more dynamic, for example two new method:
Without using a url |
Noted. I will look into this and will update you. |
Thanks you, i wait you |
hey @EliaTolin, I hope you're doing well. I've created a new .py file called offers.py where I've implemented a function called async def get_category_offer(category_name):
categ_url = f"https://www.amazon.it/s?k=offerte+{category_name}"
offers = await Amazon(categ_url, None).export_csv()
return offers call and run the method using the below command: from scrapers.offers import get_category_offer
import asyncio
async def main():
return await get_category_offer('elettronica')
if __name__ == '__main__':
print(asyncio.run(main())) can you explain more about the method |
Thank you very much. Let me give you a piece of advice. If you integrate your scraper into another software you are forced to make changes currently because you cannot know the URL based on the country you are operating in. As you see in the search keywords there is the keyword "offers" which is in Italian. For example you can reason about the Node of categories. I don't have many ideas but I think it is necessary. Other advice, currently it is not a library but a series of scraping "examples". It would be nice to make it a library. Example of use:
I give you this examples for improve your scraper. |
Thank you for the feedback. The domain name is dynamic for the main scraper, i will try to make it dynamic by using regex pattern for the offer category. I will look into this more later. Thank you for the feedback, i appreciate it. |
Thanks, I suggest you to focus for make this scraper into a library. |
Hi,
Is possible fetch offers in the categories?
For example fetch the "Elettronics" (category) offers of the day.
The text was updated successfully, but these errors were encountered: