Skip to the content Skip to the Navigation

Red And Green

  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact

Python Code

  1. HOME
  2. Python Code
December 1, 2020 / Last updated : December 1, 2020 admin Python Code

Web Scraping with bs4

BeautifulSoup Conditonal logic with soup.select Get all dropdown values from html (using page saved locally, for testing) soup.select(‘option[value]’) Note how I use soup.find to narrow down the find, otherwise I would have found other dropdowns as well

November 11, 2020 / Last updated : November 11, 2020 admin Python Code

Price Tracking Amazon

A common task is to track competitors prices and use that information as a guide to the prices you can charge, or if you are buying, you can spot when a product is at a new lowest price. The purpose of this article is to describe how to web scrape Amazon. Using Python, Scrapy, MySQL, […]

October 17, 2020 / Last updated : October 17, 2020 admin Python Code

How To Web Scrape Amazon (successfully)

You may want to scrape Amazon for information about books about web scraping! We shorten what would have been a very very long selector, by using “contains” in our xpath : response.xpath(‘//*[contains(@class,”sg-col-20-of-24 s-result-item s-asin”)]’) The most important thing when starting to scrape is to establish what you want in your final output. Here are the […]

October 7, 2020 / Last updated : October 7, 2020 admin Python Code

Combine Scrapy with Selenium

A major disadvantage of Scrapy is that it can not handle dynamic websites (eg. ones that use JavaScript). If you need to get past a login that is proving impossible to get past, usually if the form data keeps changing, then you can use Selenium to get past the login screen and then pass the […]

October 5, 2020 / Last updated : October 5, 2020 admin Python Code

Xpath for hidden values

This article describes how to form a Scrapy xpath selector to pick out the hidden value that you may need to POST along with a username and password when scraping a site with a log in. These hidden values are dynamically created so you must send them with your form data in your POST request. […]

October 4, 2020 / Last updated : October 4, 2020 admin Python Code

Scrapy Form Login

The following is an article which will show you how to use Scrapy to log in to sites that have username and password authentication. The important thing to remember is that there may be additional data that needs to be sent to the login page, data that is in addition to just username and password… […]

September 25, 2020 / Last updated : September 25, 2020 admin Python Code

Web Scraping Tools

We’ve not included Javascript or Selenium and how others think about it may vary but time is finite, so concentrate on what gets the biggest benefit. We could have put Python at the centre but we’ve assumed that’s a given. How do you visualize your own process of web scraping?

September 22, 2020 / Last updated : September 22, 2020 admin Python Code

Fix : Module Not Found

If you use Scrapy, and CrawlerProcess then Python may not search the path that is required for Scrapy to find its “items.py” file. How do you fix this ‘ModuleNotFoundError‘ ? Read on… As we can see, Scrapy framework has the items.py file in a directory above the spiders directoy

July 27, 2020 / Last updated : February 15, 2023 admin Python Code

Scraping a page via CSS style data

The challenge was to scrape a site where the class names for each element were out of order / randomised. So the only way to get the data in the correct sequence was to sort through the CSS styles by left, top, and match to the class names in the divs… The names were meaningless […]

July 13, 2020 / Last updated : February 23, 2023 admin Python Code

Configure a Raspberry Pi for web scraping

Introduction The task was to scrape over 50,000 records from a website and be gentle on the site being scraped. A Raspberry Pi Zero was chosen to do this as speed was not a significant issue, and in fact, being slower makes it ideal for web scraping when you want to be kind to the […]

Posts pagination

  • «
  • Page 1
  • …
  • Page 6
  • Page 7
  • Page 8
  • »

Recent Posts

workspaces in rust

Rust Workspaces

May 19, 2025
This Actix-Web Rust server handles messages and tracks server status. It shares state using `Mutex`-protected `HashMap` and `String`. Clients can `GET` or `POST` a message and `GET` a list of servers. State is initialized in `main` and injected into request handlers for simple thread-safe access.

App state in Actix-web

May 17, 2025
Multiple LLM Backends

Protected: Chain Multiple LLM backends in Rust

May 12, 2025

Understanding Encrypted Counters in Rust with RocksDB

May 11, 2025

Protected: Build your first MCP server in Rust and test it with an LLM

May 6, 2025
OpenAPI & FastAPI Generation Automatically generate FastMCP servers from existing OpenAPI specifications (FastMCP.from_openapi()) or FastAPI applications (FastMCP.from_fastapi()), instantly bringing your web APIs to the MCP ecosystem.

Protected: Build an MCP Server from OpenAPI Spec

May 5, 2025
Schemars in Rust

Schemars in Rust: Beyond Basic Structs

May 1, 2025
podman v docker

Getting Started with Podman

April 30, 2025
as_ref

as_ref and Cow

April 30, 2025
what-are-resources

Protected: Dynamic Resources – MCP protocol

April 23, 2025

Category

  • AI ML
  • automation
  • Bitcoin Programming
  • c
  • ebay api
  • email
  • JavaScript
  • LangChain
  • MySQL
  • Pandas
  • postgres
  • Python Code
  • Raspberry Pi
  • requests
  • Rust Programming
  • Scrapy
  • Selenium
  • Smart Contracts
  • Stellar
  • SurrealDB
  • Uncategorized
  • web scraping

Archive

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • November 2022
  • September 2022
  • November 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020

Actix-web AI API async Automation axum BDK bitcoin Bitcoin Core blockchain class Closure closures Design Patterns dictionaries GitHub huggingface iced impl langchain LLM MCP ModelContextProtocol mutable Networks Podman python Qdrant raspberry pi Rust Programming scrapy Smart Contracts Sphinx Stellar struct SurrealDB Upsert VectorDatabase Vectors WASM webscraping web scraping Word DOCX xpath Yaml

  • email
  • github
  • YouTube
This site is hosted with https://webdock.io/en Fast Cloud VPS Hosting Flat fee all-inclusive VPS with a Free Control Panel

Copyright © Red And Green All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.

MENU
  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact
Translate ยป