34 Replies
It works in python with the soup module, but idk why it isn't working in c#
Web scraping isn't allowed here most of the time due to it being against the ToS of most sites.
it isn't for bad intent
it's for school
idk if it's web scraping, is it?
getting info from a website
this is most certainly web scraping.
oh
however, that said, I dont think in this case its a huge problem
Intent doesn't matter. Still scraping.
you are scraping a single pageload, not crawling the entire site
If there is no API then it usually isnt allowed.
You can however check the terms and conditions of said site and maybe even robots.txt, although robots.txt is mainly for crawlers and not web scrapers.
ofc
it's for an asp.net web application
idk how it is working right no
w
but before it wasn't working
is it mandated that you use webscraping?
because there is an excellent pokemon api :p
i'm not sure what you mean by mandated
as in does my teacher know?
no, as in does the assignment say you SHOULD use scraping
and not fetch the data from an API instead
no, but i'm trying to learn how to do it with webscraping, it seems easier than sending requests to an api
we haven't learned how to use apis
PokéAPI
An open RESTful API for Pokémon data
oo
does this not have the info u want?
i don't know, what info does the api give?
open it and check
we have a selected 800 pokemon database
it's safe, right?
define safe
it
isn't malicious
or doesn't take data
and keeps my device healthy
doesn't do anything out of the ordinary
it does as much as u were doing with the website above
I suggest you open the site and read
and see if it fits your purpose or not
its way better than webscrapping
lmao
i have no idea what all this is
im new to APIs
but thank you for your help
web scraping is never easier than using a proper API
web pages are designed for people to read, APIs are designed for computers to read
that's IF you know how to use APIs
i don't do JS
JS is not required or related to APIs
that's a good way to put it
can u use c#?
APIs are typically HTTP
there is no language requirement
that's a W then, i'll look into it
thank you
how do i close
$close
Use the /close command to mark a forum thread as answered