Autor Beitrag
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: So 03.10.04 08:43 
Kann ich mit einer Funktion
ausblenden Delphi-Quelltext
1:
2:
3:
function Google(eingabebeigoogle:string):integer;
begin
end;

bei Google etwas suchen lassen(eingabebeigoogle) und als result Wert die Anzahl der Suchergebnisse ausgeben lassen?

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: So 03.10.04 10:17 
Ja, allerdings ist es von deiner Funktion bis zum Ergebnis noch ein seeehr weiter weg. Solche Fragen bringen dir nicht viel, da so ziemlich alles möglich ist., fragt sich nur mit welchem Aufwand.

Gruß,
Jörg

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 03.10.04 10:20 
Klar. Lad dir die Seite runter und such dir mit pos die Stelle, wo die Anzahl der Suchergebnisse steht.
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: So 03.10.04 10:22 
es ist, wie schon gesagt, möglich.
eigentlich musst du nur dir die generierte Ergebnisse Seite laden lassen (DownloadUrl oder Indy) (so nach dem Schema "http://www.google.de/search?hl=de&ie=UTF-8&q=Mein+Suchbegriff&meta=") und diese dann auswerten, will heißen parsen, da die immer gleich aufgebaut ist, sollte das nicht so die großen Probleme bereiten.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: So 03.10.04 10:26 
GSE hat folgendes geschrieben:
parsen

Womit wir wieder bei der Stringverarbeitung wären ... ;-)

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: So 03.10.04 11:00 
jepp, und vielmehr ist es auch nicht.
"nur" parsen :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: So 03.10.04 11:14 
Es gäbe noch die Möglichkeit der Google API:
www.google.com/apis/
Um die Suche dann zu nutzen musst Du einen Google Account erstellen. Ob und wenn ja, was das kostet etc. pp. liest Du auf der o.g. Seite nach.

_________________
JSXGraph
Tobias1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Sa 16.10.04 12:43 
Und Wie lade ich ein Seite in Memo ?

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)