• Fur Affinity Forums are governed by Fur Affinity's Rules and Policies. Links and additional information can be accessed in the Site Information Forum.

VeeStars

uh I can explain?
@VeeStars
*loads up smoll program*
package com.journaldev.jsoup;

import java.io.IOException;
import java.util.Scanner;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class GoogleSearchJava {
public static final String GOOGLE_SEARCH_URL = "Google";
public static void main(String[] args) throws IOException {
//Taking search term input from console
Scanner scanner = new Scanner(System.in);
System.out.println("Please enter the search term.");
String searchTerm = scanner.nextLine();
System.out.println("Please enter the number of results. Example: 5 10 20");
int num = scanner.nextInt();
scanner.close();

String searchURL = GOOGLE_SEARCH_URL + "?q="+searchTerm+"&num="+num;
//without proper User-Agent, we will get 403 error
Document doc = Jsoup.connect(searchURL).userAgent("Mozilla/5.0").get();

//below will print HTML data, save it to a file and open in browser to compare //System.out.println(doc.html());

//If google search results HTML change the <h3 class="r" to <h3 class="r1"
//we need to change below accordingly
Elements results = doc.select("h3.r > a");

for (Element result : results) {
String linkHref = result.attr("href");
String linkText = result.text();
System.out.println("Text::" + linkText + ", URL::" + linkHref.substring(6, linkHref.indexOf("&"))); }
}
}

Can you search "Wikihow How to win?" Please?
>Error: Code #0J (TobOS does not accept Java)
>Error: Code #0A (You do not have valid Admin permission)
 

Niru the Husky

Can easily be persuaded with bacon...
>Error: Code #0J (TobOS does not accept Java)
pfff
These picky technologies nowadays >->
Then, what do u accept? Idk
What about Hamburger.exe?
Ever heard about this application?

...
Can a computer be fluffy? :confused:
Are you able to simulate fluff in 16k?
 

VeeStars

uh I can explain?
pfff
These picky technologies nowadays >->
Then, what do u accept? Idk
What about Hamburger.exe?
Ever heard about this application?

...
Can a computer be fluffy? :confused:
Are you able to simulate fluff in 16k?
My machines run exclusively on BunScript.

>Running Hamburger.exe
>Error: Code #0A (You do not have valid Admin permissions)

No, I don't think I can be fluffy, and I don't have a 16k monitor or graphics card so I don't think I can simulate either :(
 

Kairos

Well-Known Member
would
My machines run exclusively on BunScript.

>Running Hamburger.exe
>Error: Code #0A (You do not have valid Admin permissions)


No, I don't think I can be fluffy, and I don't have a 16k monitor or graphics card so I don't think I can simulate either :(
still like to play with that computer though.

Run Hug.exe
 

Draakc from State Farm

Shitpost God
Banned
 

TR273

Pirate Fox Mom
*Posts spam*
Spams.jpeg
 

SoL-JoS

Fasto catto and LPW's #1 ~C U S S~ expert
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
still having that stroke, I see
 

FooFoo4230

Well-Known Member
Top