Python Selenium Tutorial #8 - Capture, Block & Mock Requests using Selenium Wire

preview_player
Показать описание
💥 Special Bonus: Use "Michael" at checkout for an extra +2GB of bandwidth.

This selenium tutorial is designed for beginners to learn how to use the python selenium library to perform web scraping, web testing, and create website bots. Selenium is a Python library that provides a high-level API to control Chrome or Chromium and Firefox or Geckodriver over the DevTools Protocol. Selenium runs non-headless by default but can be configured to run headless.

Selenium Wire extends Selenium’s Python bindings to give you access to the underlying requests made by the browser. You author your code in the same way as you do with Selenium, but you get extra APIs for inspecting requests and responses and making changes to them on the fly.

In this video, I show how we can "Intercept" requests & responses in selenium and get any information and also how we can block a request or modify the response for it (Mock a response).

Donate
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Bitcoin Wallet: bc1q05j8gcnq4mzvgj603cxdc8xxck4jgnu2ljsrt4
Ethereum Wallet: 0x5e7BD4f473f153d400b39D593A55D68Ce80F8a2e

Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Tags:
- Python Selenium Tutorial
- Full Course Selenium
- Python Selenium
- Web Scraping Full Course
- Python Selenium Web Scraping Full Course

#python #selenium #webscraping
Рекомендации по теме
Комментарии
Автор

Really really helpful, thanks for making it simple!

redabitar
Автор

thank you for this tutorial, really helpful

hellototech
Автор

grats bro, your videos helped me a lot.

Nathan
Автор

Hey man just found your channel you're awesome
Thank you for your content

dubey_ji
Автор

Great video on the basics of selenium-wire! I'm looking for how to intercept websocket messages, and there doesn't appear to be much of anything on the topic besides a few issues on the sw github that still don't give much. Would be a good video for you to do, would definitely receive good search results!

OMGaNARWHALE
Автор

thank you for these tutorials keep it up

gijoo.x
Автор

How can you use this with the UC mode from the previous video?

Helza
Автор

Good video brother, thanks for your work, I have a question, how can I keep the browser listening to the network without it closing, I put what you did into operation and it works fine, only when I finish executing the test the browser closes and I would like keep it open listening to the network

vhpm
Автор

Excellent video bro, thank you very much, a question how can I make it listen to all the responses that arrive in the network tab, that is, leave it running the script and capture all the fetch that arrives, Thanks

vhpm
Автор

What if i need new requests everytime i click navbar/href of a specific website?...basically i want to print network logs of a website everytime i click a new href

ajitesh
Автор

How can we achieve the same with mobile browser?

CraftWithMithra
Автор

dude there is like a website that detects temp email i used selinium and tried to sign in using temp mail but it detects
can we fix this changing the cookies?? help me

dreamer
Автор

hello bro plese help me, i get error ""import _brotli ImportError: DLL load failed while importing _brotli: The specified module could not be found.", how solve the this problem?

johanesseptiawan
Автор

Is it possible to load browser profile in selenium-wire driver

theashmedai
Автор

How to filter using request body bro, please help

theashmedai
Автор

Brother please solve this
py", line 5, in <module>
from import optmanager
File "C:\Users\ahmed\AppData\Roaming\Python\Python312\site-packages\seleniumwire\thirdparty\mitmproxy\optmanager.py", line 9, in <module>
import blinker._saferef
ModuleNotFoundError: No module named 'blinker._saferef' in seleniumwire And also a download library blinker please help and reply

etlimtech