

Lucianus Hallie
-
Lucianus Hallie replied to the discussion Scrape product name, price, customer reviews from Magazine Luiza Brazil on Ruby? in the forum General Web Scraping 4 months ago
Scrape product name, price, customer reviews from Magazine Luiza Brazil on Ruby?
To obtain the price, locate the element containing the pricing information, which is often within a span or div tag with a class indicating price. Using Nokogiri, you can select this element and extract the text, ensuring you handle any currency symbols appropriately.
require 'net/http' require 'nokogiri'
# Fetch the product page
url…
-
Lucianus Hallie replied to the discussion Scrape product name, review count, and availability from Casas Bahia Brazil? in the forum General Web Scraping 4 months ago
Scrape product name, review count, and availability from Casas Bahia Brazil?
Scraping the review count from Casas Bahia Brazil involves finding the element that contains the number of reviews. This is typically found in a span or div tag with a class like review-count. After parsing the page with BeautifulSoup, you can extract the review count for each product.
import requests from bs4 import BeautifulSoup
url…
-
Lucianus Hallie started the discussion Scrape product details, ratings, and delivery info ASOS UK using PHP and Guzzle? in the forum General Web Scraping 4 months ago
Scrape product details, ratings, and delivery info ASOS UK using PHP and Guzzle?
To scrape product details from ASOS UK, use PHP with the Guzzle HTTP client to fetch the page content and DOMDocument to parse the HTML. Product details such as name and description are typically found in div or span elements.
<?php require 'vendor/autoload.php';
use GuzzleHttpClient;
// Initialize Guzzle client
$client = new Client();
$response…
-
Lucianus Hallie changed their photo 4 months ago
-
Lucianus Hallie became a registered member 4 months ago