Superskyyy / iQueensu

Project iQueensu backend
http://www.iqueensu.ca
2 stars 0 forks source link

解决selenium偶尔抓不到element的问题 #26

Open Superskyyy opened 5 years ago

Superskyyy commented 5 years ago
Superskyyy commented 5 years ago

A workaround is skipping both that is "UNSP" -- indicates a blank stub course. and contains a "***" -- indicates the course has multiple offerings. These will be the only two types of courses observed so far, which goes against the overall structure.</p> <p>The further solution will be adapting thought 2 into code. After all, selenium is the safest way to do such scraping, due to its nature of mimicking human inputs from an actual browser. We also need to add random delays between each page call, preventing IP/ account bans.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>