Skip to main content

A package to scrap the web dynamically

Project description

Dynamic Scrapper STILL IN DEVELOPMENT

The Goal Of This Package:

The goal of this package is being able to scrap any site given and gather any data no matter they type/style of said site.

This project was a huge part of understanding webscrapping in general.

How to use:

The package is equipped with a CLICK CLI to give the input needed to extract the data needed.

Steps:

  1. First step is giving the link of the site you want scrapped. (it can be either a page that contains a bunch of links to click and extract data from inside every link or one single page that you want data extracted from).
  2. If the link you gave is of a page containing a bunch of links to get data from, write the class name of the
    containing the "a" tag that contains these links (in most cases these links always have the same class name)[LEAVE EMPTY IF IT'S A SINGLE PAGE EXTRACTION].
  3. Choose the type of pagination used in said page to be able to extract data from all pages:
  • number: for sites with numbered pagination
  • see_more: for sites with a see more button that expands the rest of the information
  • none: incase of a single page or a infinite scrollp age
  1. Write the class name of the pagination class used according to:
  • number: write the class name of the button "next" or ">" that takes you to the next page
  • see_more: write the class name of the see_more button
  • none: leave empty
  1. Choosing the items to scrap This step is gonna look like this:
  • Choose a name for the item
  • Choose the type you want to use to extract said item: - tag-name: using html tag names - class-name: using class-names - id: using id - name: using name attribute - link-text: by giving the text inside a "a" tag
  • Choose the name of the type you specified before: - tag-name : the tag name you want to extract from (h1, h2, a ...) - class-name: the class name needed - id: the id needed - name: the name inside the attribute - link-text: the text inside the "a" tag
  • IF you are trying to get the value inside an attribute of a tag, write the tag name you want to get (for example you need img url inside an "img" tag, you write "src" to get the text inside the src)
  • Choose Y or N to continue adding items to scrap or stop.

## Tips for number 5:

  • use tag-name when there is only one tag of that kind (h1..)
  • class-name is the most used but make sure to take a unique name so you dont get other items by mistake.
  • be carefull when using id as an id can change from page to page of the same element.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynamicscrapper-10.0.7.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynamicscrapper-10.0.7-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file dynamicscrapper-10.0.7.tar.gz.

File metadata

  • Download URL: dynamicscrapper-10.0.7.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for dynamicscrapper-10.0.7.tar.gz
Algorithm Hash digest
SHA256 acda81fe5c04ac035eda419e2a466c76d2d2e48db678b7969d851f9c50b550b5
MD5 594a54c393045e8aef16bc870b7f2cb6
BLAKE2b-256 ccb8220ba318e171a9c5cb2a7b0028f0077953f35cf47948a80541d604ebbc36

See more details on using hashes here.

File details

Details for the file dynamicscrapper-10.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamicscrapper-10.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f0684fb2c18b9e87087696c79c4da29d1de7f3b8e82f09b17bca5c4ec4124f46
MD5 faa12e8cfd87ff2c91cd60b589676a4c
BLAKE2b-256 3282ca99a4934131d408fc2e3300a9cdf44d3a2cc5175c4e8394830c9a210d99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page