Skip to content

A simple Scraper to get all Exhibitors of the SwissBau-Trade Fare

License

Notifications You must be signed in to change notification settings

Qu4ndo/swiss-trade-fairs-scaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

Swiss Trade-Fairs Scaper

A simple scraper to grab all Exhibitors of some Swiss Trade-Fairs

Setup

Before you can start scraping you have to make sure that pip is installed:

(this command works on most linux distros)

sudo apt-get install python-pip

After that you can install BeautifulSoup with pip:

pip install bs4

Usage

Start the scraper.py script with this command or with the steps under Usecase:

python3 scraper.py

And choose the right one from the list (with numbers)!

Output

The Data will be formated into following CSV-Output:

[link; company_name; adress; postal; city; country; phone; website; contact_name; contact_position; contact_link]

Attention: To open the CSV file correctly make sure to use the semicolons as separating-option!

Usecase

If you are using a Linux machine you can easily make this script executable.

Include following code in the first line of the scaper.py script:

#!/usr/bin/env python3

Then make the scraper.py script executable with following command in the terminal:

chmod +x scraper.py

After that you can simply add a shortcut on your desktop or start it with:

./scraper.py

Optional

If you want do not want to automatically delete the buffer you have to exclude the os.system comment at the end of the scraper.py file:

#os.system("rm buffer.csv")

About

A simple Scraper to get all Exhibitors of the SwissBau-Trade Fare

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages