Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,166 members, 7,815,063 topics. Date: Thursday, 02 May 2024 at 06:36 AM

Jumia Black Friday Web Scraping Program - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Jumia Black Friday Web Scraping Program (2643 Views)

Need A Web Scraping Expert... / Web Scraping With Go / The Future Of Web Scraping (2) (3) (4)

(1) (Reply)

Jumia Black Friday Web Scraping Program by Drjimoh: 10:23am On Nov 06, 2018
One minute silence for NLC who couldn't put a smile on our face this morning...

undecided shsss
cheesy may the good Lord save us from minimum wage.

In the early hours of this morning, -or in the morning hours early this morning - I decided out of sheer cynicism of Jumia Black Friday (being very unlucky in the past), to write a script that crawls jumia Pages and get names of items with at least 50% discount.
Well it worked and as it appears, I felt the urged to fork it on github for my fellow programmers to take advantage of the upcoming Black Friday deals, all you have to do is run the script using --scrapy crawl Aragog -- from the root directory.

You can change the threshold discount rate from the wicked.py file in the spider folder and you can even change the urls to crawl from the same folder.

It produces the result in the form of excel files, pretty basic but with a few refactoring you can do wonders with it.

Requirements:
Python 3 (best installed with Condamini or Anaconda)
Pandas (comes with condamini or Anaconda)
Scrapy (pip/conda install scrapy)
Virtualenv (if you will)

Link to the repo on GitHub

https://github.com/Drjimoh/BlackfridayCrawler


Let me know if you need anything. Have fun scraping jumia and pray jumia doesn't change their robot.txt file till after the Black Friday.

By the way, the spider was able to crawl 11 heavy jumia pages and return outputs in 26.93 seconds (for those that believe python is slow).

4 Likes

Re: Jumia Black Friday Web Scraping Program by Veriton(m): 8:43pm On Oct 25, 2021
Wow, that really worked out? I want to do something similar, but I'm not sure how to do that. Could you please help me out with this? It's identical to Jumia Black Friday, but I'm willing to write the script for more websites. I want the script to list at least the items with a 20% discount and more. Considering the number of websites I'm willing to use in my project, and I'm not sure about the scrip and what else I need. I have already contacted https://proxycrawl.com/scraping-with-worldwide-backconnect-proxy for their back connect proxies. I hope they'll make it work.
Re: Jumia Black Friday Web Scraping Program by ericbertrand(m): 11:56am On Oct 17, 2023
Good morning Drjimoh. Pls how can I reach you? I’m a newbie to web scraping and I’m in dire need of someone who can direct me. I was really impressed with this project and it’ll be a pleasure to be advised by you.

(1) (Reply)

Develop One App For All Mobile Devices - HTML5, Javascript and/or C++ / Anyone In Tech Up For Friendship? / My Paint Application Project

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.