Skip to content

TikitaTolley/freelancer_scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scraping Freelancer

Description

This repository contains a gitignore, a CSV file and a python file. The purpose of this project was to scrape the site: Freelancer.co.uk for data specific to jobs I was interested in. For this CSV file, I focused on python-related jobs. I wanted to change the layout of the list of jobs, only getting information specific to: date, title, price, description, skills, and url. In the later YouTube video I placed this data into an excel format.

Installation

Setting up the virtual environment

  1. pip install virtualenv
  2. python3 -m venv venv
  3. source venv/bin/activate

Create gitignore

  1. touch .gitignore (no output expected)
  2. open .gitignore and write in venv

Installing dependencies

  1. pip install requests
  2. pip install beautifulsoup4
  3. pip install python-csv

Usage

Import modules

import requests
from bs4 import BeautifulSoup
import csv
from datetime import date
  • use requests to get the URL
  • pass through bs4's html.parser to grab the html from that page
  • search for a div with a particlular div
  • isolate the information you want
  • open a CSV file and pass in the data

YouTube Video

Scraping Project Video

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages