GoogleSearchResults 1.3.0

dotnet add package GoogleSearchResults --version 1.3.0                
NuGet\Install-Package GoogleSearchResults -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GoogleSearchResults" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GoogleSearchResults --version 1.3.0                
#r "nuget: GoogleSearchResults, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GoogleSearchResults as a Cake Addin
#addin nuget:?package=GoogleSearchResults&version=1.3.0

// Install GoogleSearchResults as a Cake Tool
#tool nuget:?package=GoogleSearchResults&version=1.3.0                

Google Search Results Scraper

In V1.3.0, this tool can scrape Google search results without requiring an API key. Only Google is supported in this version. Additionally, with specific settings, you can retrieve backlinks. <br> Furthermore, with the V1.3.0 update, it's possible to scrape a website's Domain Authority (DA), Page Authority (PA), and IP address.

Installation

Package Manager

NuGet\Install-Package GoogleSearchResults -Version 1.3.0

Usage

GoogleSearchResult class contains target website URL and title.

using GoogleSearchResults;
using GoogleSearchResults.Google;
public async Task Main(string[] args)
{
    List<GoogleSearchResult> searchResults = new List<GoogleSearchResult>();
    var search = new GoogleSearch();
    searchResults = await search.GetSearchResults("query",20,4,null,SearchOptions.Backlink, FocusedWebsites.Xenforo);
    foreach(var item in searchResults){
            Console.WriteLine("Url:" + item.Url + "Title:" + item.Title);
    }
    Console.ReadKey();
}

To use proxy: Use ProxyOptions class to specify your proxy and credentials.

var proxyOptions = new ProxyOptions() { 
    UseProxy = true,
    IP = "IP",
    Port = "PORT",
    Username = "username",
    Password = "password",
};
    // and use it in method.
await GetSearchResults(string Query, int maximumCount, int pageCount, proxyOptions, SearchOptions searchOptions = SearchOptions.Normal, FocusedWebsites websites = FocusedWebsites.Any);

GetSearchResults() Method. Specify proxy null if you dont want to use.

public async Task GetSearchResults(string Query, int maximumCount, int pageCount, ProxyOptions proxy = null, SearchOptions searchOptions = SearchOptions.Normal, FocusedWebsites websites = FocusedWebsites.Any)

SearchOptions

Normal : Gets all results pointed to specifed query,
Forum : Returns forum websites with query word you provided,
Backlink : It points to related web sites & forums to scrap results,
INTEXT : Google will return pages that contain the query word you provided,
INURL : Google will only show you pages that have that term in the URL,
DEFINE : Google will return definitions for the term from different sites,
RELATED : Google will return related websites

FocusedWebsites

Any,
Reddit,
Xenforo,
vBulletin,
FluxBB,
SMF

Usage of DA/PA Checker

To check websites DA/PA and IP address use CheckAsync() method.

public async Task<List<CheckerResults>> CheckAsync(List<GoogleSearchResult> searchResults, ProxyOptions? proxy = null)
List<GoogleSearchResults.Google.GoogleSearchResult> searchResults = new List<GoogleSearchResults.Google.GoogleSearchResult>();
List<GoogleSearchResults.Checker.CheckerResults> results = new List<CheckerResults>();
var search = new GoogleSearch();
searchResults = await search.GetSearchResults("betta fish", 20, 4, null, SearchOptions.Backlink, FocusedWebsites.Xenforo);
Checker checker = new Checker();
results = await checker.CheckAsync(searchResults);
foreach (var item in results)
{
    Console.WriteLine($"URL: {item.URL}  Title: {item.Title} DA: {item.DA} PA: {item.PA} Spam Score: {item.SpamScore} IP: {item.IP}");
}

TODO

ADD Other search engines (Yandex, DuckDuckGo)
Multiple search with proxies
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 164 2/11/2024
1.2.1 133 1/23/2024
1.2.0 103 1/23/2024
1.1.0 181 1/20/2024
1.0.0 155 1/18/2024