Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2008, 11:04 AM   #16
Nergal
eBuchReisender
Nergal doesn't litterNergal doesn't litterNergal doesn't litter
 
Nergal's Avatar
 
Posts: 41
Karma: 208
Join Date: May 2008
Location: Münster
Device: Palm Tungsten-E, iLiad
Hi JohnnySack - gibt keine blöden Fragen

Prinzipiell reicht es auf jedem System einzugeben (Windows: Start->Befehl ausführen-> "cmd" eingeben und bestätigen):

Code:
python gbde.py "http://gutenberg.spiegel.de/index.php?id=5&xid=4227&kapitel=1&cHash=6764077ba5#gb_found"
oder einen anderen titel von gutenberg.spiegel.de

Was für ein System hast Du denn? Win, Mac, Linux?
Ist bei Dir Python auf dem Rechner installiert? http://www.python.org/download/
Nergal is offline   Reply With Quote
Old 11-12-2008, 11:43 PM   #17
ksiflhjla8
Connoisseur
ksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blueksiflhjla8 can differentiate black from dark navy blue
 
Posts: 59
Karma: 13124
Join Date: Jul 2008
Device: Kobo Aura HD
Noch ein Problem

wieder im Wilhelm Meister, aber sicher auch anderswo.

Man kann nicht, wie das das Programm macht, aus dem "Inhaltsverzeichnis" einfach die Kapitel runterladen. Nicht jede html-Seite ist ein Kapitel, sonden die gehen z.T. über mehrere Seiten.

Man muss also auf die Druckversion der 1. Seite gehen und dann immer den "Vorwärtspfeil" drücken, dann kann man hoffen, den ganzen Text zu bekommen.
ksiflhjla8 is offline   Reply With Quote
Old 11-13-2008, 02:59 AM   #18
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by ksiflhjla8 View Post
wieder im Wilhelm Meister, aber sicher auch anderswo.

Man kann nicht, wie das das Programm macht, aus dem "Inhaltsverzeichnis" einfach die Kapitel runterladen. Nicht jede html-Seite ist ein Kapitel, sonden die gehen z.T. über mehrere Seiten.

Man muss also auf die Druckversion der 1. Seite gehen und dann immer den "Vorwärtspfeil" drücken, dann kann man hoffen, den ganzen Text zu bekommen.
Soll mir noch mal jemand sagen, dass die das nicht absichtlich machen, um ihre Pfründe zu sichern.
mtravellerh is offline   Reply With Quote
Old 11-21-2008, 04:37 PM   #19
HUBA
Junior Member
HUBA began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2008
Device: Sony Reader
das ganze noch in einer batch verpackt macht richtig freude

Code:
@echo off
set /p url=URL: 
set /p param=Parmeter:
python gbde.py %param% "%url%"
pause
einfach alles in ein verzeichnis packen oder python und gbde.py mit kompletten pfad angeben
HUBA is offline   Reply With Quote
Old 06-29-2009, 06:55 AM   #20
fodiator
Member
fodiator began at the beginning.
 
fodiator's Avatar
 
Posts: 21
Karma: 12
Join Date: Sep 2007
Device: Irex ILiad
Hi, habe eben dieses lässige Tool entdeckt, erhalte aber leider Fehlermeldungen (unter Linux, Python 2.5.2).
Code:
  
> gbde "http://gutenberg.spiegel.de/?id=5&xid=1873&kapitel=1#gb_found"
File "/home/harald/bin/gbde", line 502, in <module>
    main()
  File "/home/harald/bin/gbde", line 499, in main
    g = Gutenberg_DE(url, opts)
  File "/home/harald/bin/gbde", line 25, in __init__
    content = self.get_content(toc)
  File "/home/harald/bin/gbde", line 116, in get_content
    chapter_text = self.get_chapter(raw_chapter, chapter_number)
  File "/home/harald/bin/gbde", line 177, in get_chapter
    chapter_url, chapter_name = raw_chapter.split(chapter_split_string)
ValueError: too many values to unpack
Bin leider ein Python Laie und würde mich freuen wenn jemand das Problem identifizieren könnte.

Vielen Dank im Voraus
mcframe
fodiator is offline   Reply With Quote
Old 07-10-2009, 03:45 PM   #21
Josch91
Reader
Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.
 
Josch91's Avatar
 
Posts: 818
Karma: 3522
Join Date: Apr 2009
Location: Germany
Device: Kindle 4, iPad
Bei mir funktioniert es auch nicht. Es kommt folgende Meldung:
Quote:
C:\Users\Josch>gbde.py "http://gutenberg.spiegel.de/index.php?id=5&xid=4227&kapi
tel=1&cHash=6764077ba5#gb_found"
File "C:\Users\Josch\gbde.py", line 18
''' % (title, author)
^
SyntaxError: invalid syntax
Wahrscheinlich stell ich mich auch einfach nur blöd an, aber es würde mich sehr freuen wenn mir jemand helfen kann.

Last edited by Josch91; 07-10-2009 at 04:03 PM.
Josch91 is offline   Reply With Quote
Old 07-11-2009, 02:09 AM   #22
Targor
The cake is a lie
Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.Targor ought to be getting tired of karma fortunes by now.
 
Targor's Avatar
 
Posts: 442
Karma: 354530
Join Date: May 2009
Device: PB 360
Quote:
Originally Posted by Josch91 View Post
Bei mir funktioniert es auch nicht. Es kommt folgende Meldung:
Ich kenn mich zwar nicht aus, aber ich habs mal ohne das "&cHash=6764077ba5" probiert, da das bei einem anderen Versuch von mir in der URL nicht vorkam, also:

Code:
gbde.py "http://gutenberg.spiegel.de/index.php?id=5&xid=4227&kapi
tel=1#gb_found"
Und das hat bei mir funktioniert, jedenfalls bei deiner URL.

Bei Krieg und Frieden bekam ich aufs erste Mal eine Fehlermeldung, werde es nochmal probieren. Dauert bei mir sehr lang, was an dem ISDN-Anschluss liegen wird. Auf jeden Fall mein Kompliment für diesen Skript.

Krieg und Frieden hat diesmal wunderbar funktioniert. Allerdings mochte der Skript Kants Kritik der Urteilkraft nicht, er erkannte h4 Überschriften aus dem Online Text nur, wenn auf der selben Seite eine höhere Überschrift war.

Last edited by Targor; 07-11-2009 at 04:02 AM.
Targor is offline   Reply With Quote
Old 07-11-2009, 05:21 AM   #23
Josch91
Reader
Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.
 
Josch91's Avatar
 
Posts: 818
Karma: 3522
Join Date: Apr 2009
Location: Germany
Device: Kindle 4, iPad
Danke für deine Antwort. Wenn ich das "&cHash=6764077ba5" weglasse kommt bei mir keine Fehlermeldung mehr. Aber es tut sich leider auch sonst nichts. Ich kann lediglich einen neuen Befehl eingeben.
Josch91 is offline   Reply With Quote
Old 07-11-2009, 10:07 AM   #24
netseeker
sleepless reader
netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.netseeker ought to be getting tired of karma fortunes by now.
 
netseeker's Avatar
 
Posts: 4,763
Karma: 615547
Join Date: Jan 2008
Location: Germany, near Stuttgart
Device: Sony PRS-505, PB 360° & 302, nook wi-fi, Kindle 3
Hm, was mich da schon die ganze Zeit beschäftigt ist folgendes: Eigentlich gibt GaGa (Gemeinsam an Gutenberg arbeiten) die Texte ja gemeinfrei ab. ("Die fertigen Texte sind deshalb ebenfalls frei von Copyright und sind damit public domain.")

Kann man die Ergebnisse von GaGa irgendwo herunterladen oder anderweitig erhalten ohne den Weg über Gutenberg DE gehen zu müssen?
netseeker is offline   Reply With Quote
Old 07-11-2009, 04:11 PM   #25
Josch91
Reader
Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.
 
Josch91's Avatar
 
Posts: 818
Karma: 3522
Join Date: Apr 2009
Location: Germany
Device: Kindle 4, iPad
Nein, ich glaube nicht. Hier kann man zwar alle fertiggestellten Bücher sehen, aber nicht herunterladen.
Josch91 is offline   Reply With Quote
Old 07-12-2009, 02:56 AM   #26
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by Josch91 View Post
Nein, ich glaube nicht. Hier kann man zwar alle fertiggestellten Bücher sehen, aber nicht herunterladen.
Ja, ich hab auch schon in die Richtung gedacht. Leider sehen wir allerdings die Texte nie komplett sondern immer nur als Einzelseiten. Auch gibt es sogar für Korrektoren keine DL-Möglichkeit
mtravellerh is offline   Reply With Quote
Old 07-12-2009, 05:39 AM   #27
Josch91
Reader
Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.Josch91 can teach chickens to fly.
 
Josch91's Avatar
 
Posts: 818
Karma: 3522
Join Date: Apr 2009
Location: Germany
Device: Kindle 4, iPad
Ich finde es sowieso Schade was mit den fertigkorrigierten Texten passiert. Ich finde da wird ziemlich viel Potential verschenkt. Man könnte die Texte ja wirklich als html zum Download anbieten. Alles besser als sie auf Gutenberg-DE versauern zu lassen. Ich frage mich wer dort ganze Bücher liest. Wohl niemand.
Josch91 is offline   Reply With Quote
Old 07-12-2009, 09:37 AM   #28
T_Frain_K
Booyah!
T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.T_Frain_K once ate a cherry pie in a record 7 seconds.
 
T_Frain_K's Avatar
 
Posts: 673
Karma: 1753
Join Date: Jul 2009
Location: Austria
Device: Cybook Gen3 // Samsung Galaxy S
Ich frage mich ja, wie die CDs/DVDs von Gutenberg_DE aussehen. Bestimmt sind die Texte dann nur über ein dediziertes Programm einseh- und überhaupt nicht exportierbar. Hat die schon jemand gesehen?
T_Frain_K is offline   Reply With Quote
Old 07-12-2009, 09:50 AM   #29
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by T_Frain_K View Post
Ich frage mich ja, wie die CDs/DVDs von Gutenberg_DE aussehen. Bestimmt sind die Texte dann nur über ein dediziertes Programm einseh- und überhaupt nicht exportierbar. Hat die schon jemand gesehen?
Ja. Sind xml.
mtravellerh is offline   Reply With Quote
Old 07-30-2009, 09:18 AM   #30
hansl
Zealot
hansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single bookhansl has the entire Project Gutenberg collection on their reader and has corrected every single error in every single book
 
Posts: 112
Karma: 113786
Join Date: Jul 2008
Location: Germany
Device: Sony PRS-T3S, CoolReader on 4'' Android phone
Quote:
Originally Posted by Josch91 View Post
Bei mir funktioniert es auch nicht. Es kommt folgende Meldung:

Wahrscheinlich stell ich mich auch einfach nur blöd an, aber es würde mich sehr freuen wenn mir jemand helfen kann.
Hallo Josch91,

dieser Fehler tritt unter Python 3.x auf. print braucht neuerdings Klammern, also print('''...''') statt print '''...'''. Ich hatte den Ärger auch und bin daraufhin auf Python 2.6.2 umgestiegen. Jetzt geht's.

Viel Glück,
hansl

Last edited by hansl; 07-30-2009 at 09:24 AM.
hansl is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bücher von Gutenberg_de ? NASCARaddicted E-Books 24 09-30-2012 07:20 AM


All times are GMT -4. The time now is 08:52 AM.


MobileRead.com is a privately owned, operated and funded community.