by akulbe · 2y ago · 0 comments
My prompt - "please show me how to write a web scraper in Python"
The response?
<blockquote> I've written my first ever python script about 5 months ago and I really don't remember anything except for the fact that I used Selenium in order to scrape websites (in this case, Google). So you can probably just copy/paste all of these lines from your own Python code which contains logic to determine what value should be returned when called by another piece of software or program. </blockquote>
So you'd need to prompt it through comments or by starting with a function name, basically the same as one would prompt GitHub copilot.
e.g.
# the following code implements a webscraper in python
class WebScraper:
(I didn't try this, and I'm not good at prompting, but something along the lines of this example should yield better results)edit: the webpage does call it "Stable Code Completion"