Lab 9 finished up

parent 08b77fe3
Pipeline #21106 passed with stages
in 2 minutes and 49 seconds
......@@ -2,4 +2,5 @@ area/area.exe
area/test.exe
.vscode/
msg.txt
lab07/build.bat
\ No newline at end of file
lab07/build.bat
dump.txt
\ No newline at end of file
1) Selenium sure was slower than using requests, but still a heck of a lot faster than doing it manually, still. The biggest difference that stood out to me was how little code
we actually needed to get something similar done using requests. Rather than interact with the UI itself with Selenium, we could bypass all that and have requests interact with the
page directly. This cut down on extra code, and we didn't need a class definition either. Really fascinating stuff.
I only ran into one issue, and that was using Requests. I wasn't entirely sure how to use requests natively to grab javascript generated HTML, so at the time of writing, I've
left it as is. But I imagine if I wanted to get it done, I'd have to use something like Beautiful Soup and maybe continue to use Selenium for my GET requests. I saw a few resources online
claim that using something called urllib2 could also grab javascript generated content. This seems to be Requests' only drawback.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment