https://github.com/mauropelucchi/pyconsk2022
Data Ingestion and Big Data @ PYCONSK 2022
https://github.com/mauropelucchi/pyconsk2022
bigdata pyconsk22 python scraping selenium
Last synced: about 2 months ago
JSON representation
Data Ingestion and Big Data @ PYCONSK 2022
- Host: GitHub
- URL: https://github.com/mauropelucchi/pyconsk2022
- Owner: mauropelucchi
- Created: 2022-09-09T04:50:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-09T07:46:52.000Z (almost 4 years ago)
- Last Synced: 2025-12-19T17:26:06.313Z (6 months ago)
- Topics: bigdata, pyconsk22, python, scraping, selenium
- Language: Jupyter Notebook
- Homepage:
- Size: 12.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data Ingestion and Big Data @ PYCONSK 2022
## Build a dataset from zero to solid
Web scraping, crawling and API are the first step to retrieve information to use for analysis
and to start a new business.
In this tutorial I'll show you how to use python to set up scraping and crawling processes,
how to simulate users navigation and browser behavior with a ghost browser and how to hook up and use data APIs.
I will also try to explain the technical and ethical aspects that we have to consider when we approach these kinds of challenges.
## About
This repo contains slides and code for Mauro Pelucchi's "Data Ingestion and Big Data" @ PyCON SK 2022.
- [Access slides]([https://github.com/mauropelucchi/europython2021/blob/main/slide/EUROPYTHON2021_BigData_Data_Ingestion.pdf](https://github.com/mauropelucchi/pyconsk2022/blob/main/PYCONSK_2022_BigData_Data_Ingestion.pdf))
- [Access notebook (colab)]([https://github.com/mauropelucchi/europython2021/blob/main/notebook/EUROPYTHON_2021_Web_Scraping_with_Selenium.ipynb](https://github.com/mauropelucchi/pyconsk2022/blob/main/PYCON2022_Web_Scraping_with_Selenium.ipynb)
## Running the notebook
I **highly** recommend using the Colab, but in case you want to do it on your local notebook, follow the steps below:
1. Download ChromeDriver [https://chromedriver.chromium.org/downloads](https://chromedriver.chromium.org/downloads)
2. Import these libs
```
import sys
import logging
from selenium.webdriver.remote.remote_connection import LOGGER
LOGGER.setLevel(logging.WARNING)
from selenium import webdriver
from tqdm import tqdm_notebook as tqdm
import pandas
import json
import pprint
```
3. Create your ChromeDriver
```
wd = webdriver.Chrome('/chromedriver',chrome_options=chrome_options)
```
# MIT License
Copyright (c) 2022 Mauro Pelucchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.