googlesearch
googlesearch copied to clipboard
Add sponsored search results and Pandas DataFrame conversion
Summary
This PR adds two new features to the library, as suggested in Issue #11:
- Sponsored search results: The
search
function now accepts asponsored
boolean flag to fetch sponsored search results. - Pandas DataFrame Conversion: Introduced a
to_df
function to convert search results into a Pandas DataFrame.
Changes
- Modified
SearchResult
class to include anis_sponsored
attribute. - Updated the
search
function to accommodate thesponsored
flag. - Added a
to_df
function to convert search results to a Pandas DataFrame. - Updated README to reflect these changes.
How to Test
- Perform a search with the
sponsored=True
flag. - Convert the search results to a Pandas DataFrame using the
to_df
function.
Issue Link
Closes #11