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
searchfunction now accepts asponsoredboolean flag to fetch sponsored search results. - Pandas DataFrame Conversion: Introduced a
to_dffunction to convert search results into a Pandas DataFrame.
Changes
- Modified
SearchResultclass to include anis_sponsoredattribute. - Updated the
searchfunction to accommodate thesponsoredflag. - Added a
to_dffunction to convert search results to a Pandas DataFrame. - Updated README to reflect these changes.
How to Test
- Perform a search with the
sponsored=Trueflag. - Convert the search results to a Pandas DataFrame using the
to_dffunction.
Issue Link
Closes #11