juliandwain / xscrapers

A simple webscraper library.
https://github.com/juliandwain/xscrapers
MIT License
0 stars 0 forks source link

Beautifulsoup Tag and Result Set #7

Open juliandwain opened 3 years ago

juliandwain commented 3 years ago

Problem

Looking at the example stock_data.py, there are 2 methods of generating the required dataframes. The 2nd method is working as expected, but the first method requires some more finetuning:

juliandwain commented 3 years ago

A possible use case must be found where the different methods of finding a tag in Beautifulsoup (e.g., calling a tag, calling find, or calling find_all) is covered so that the function always returns the expected results (see 4c42543)

juliandwain commented 3 years ago

A possible solution would be to deeply integrate the ResultSet data type intop the Parser/Webscraper object and directrly work with it.