Welcome, Guest
Python Scripts for ComicRack

TOPIC: A script request !

A script request ! 8 years 4 months ago #3675

  • Ludwig
  • Ludwig's Avatar
  • Offline
  • Gold Boarder
  • Posts: 197
  • Thank you received: 12
  • Karma: 9
Dutch info retrieval.
Based on the site www.zilverendolfijn.nl/

Looked at the 2 existing scripts for the foreign comics ..but Chinese for me... no similarities..not my cup of tea :blink: .

And one xtra difficulty, several 'Dutch' albums have more than one Publisher.

A laurel wreath and Karma for the Wiz who can deliver this :)
The administrator has disabled public write access.

Re:A script request ! 8 years 3 months ago #3800

  • Franck
  • Franck's Avatar
  • Offline
  • Junior Boarder
  • Posts: 31
  • Thank you received: 4
  • Karma: 4
Hello,

I don't have so much time currently but bedetheque scripts can be adapted:

1*/ look for the serie with :
www.zilverendolfijn.nl/zd/zd.pl?k=serie+name&a=gz&kt=NL&c=1&s=c
Example with "Les arcanes"
www.zilverendolfijn.nl/zd/zd.pl?k=les+ar...s&a=gz&kt=NL&c=1&s=c

2*/ make a rexep to the url for the serie :
r'<a href="(?P<serieUrl>[^"]+.html?)"[^>]*>\('+serie+'\)<\/a>'

3*/ retrieve serie url and use regexp to retrieve album URL
<td align="right">1</td><td><img src="/img/mark_zw\.gif" alt="mark">[^"]+<a href="(?P<serieUrl>[^\.]+\.html?)"

4*/ Modify regexp of getAlbumInfoPage
RegTitle = r'FONT-SIZE: 10pt;">(?P<title>[^<]*?)<'
     RegScenar = r'Schrijver</TD><TD VALIGN="TOP"><B><A.*fd">(?P<scenar>[^<]*?)</A></B>'
     RegDessin = r'Tekenaar</TD><TD VALIGN="TOP"><B><A.*fd">(?P<dess>[^<]*?)</A></B>'
     RegColor = r'Inkleurder</TD><TD VALIGN="TOP"><B><A.*fd">(?P<color>[^<]*?)</A></B>'
     RegEdit = r'Uitgever</TD><TD><B><A[^>]+>(?P<editor>[^<]*?)<'
     RegCollec = r'ZD id[^"]+"[^"]+"[^>]+>(?P<collec>[^<]*?)<'
     RegDate = r'Uitgifte jaar/maand</TD><TD><B>(?P<date>[^<]*?)<'


5*/ You can remove the regexp to reorganize First nad last names
The administrator has disabled public write access.

Re:A script request ! 8 years 3 months ago #3820

  • Ludwig
  • Ludwig's Avatar
  • Offline
  • Gold Boarder
  • Posts: 197
  • Thank you received: 12
  • Karma: 9
Thanx for your time, really appreciate it.

Your star has risen.

I'll try to see if I can work it out, i already tryed to compare between the site and the Bedetheque and old ComicBookDb-scripts several times but got severe headaches ;)
The administrator has disabled public write access.
Time to create page: 0.205 seconds

Who's Online

We have 192 guests and one member online