Skip to content
YACReader
Did you find a bug? Splash it!

ComicVine scraper: List of Covers text

  • sandman4sure
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #5753 by sandman4sure
ComicVine scraper: List of Covers text was created by sandman4sure
When scraping information from ComicVine, a lot of times extra information in the synopsis is added which should be removed, for instance:
Code:
List of covers and their creators:CoverNameCreator(s)Sidebar LocationRegRegular CoverFernando Heinz1TortureTorture CoverRaulo Caceres8ADArt Deco CoverMichael DiPascale9FFFemme Fatale CoverJuan Jose Ryp10HTHomo Tortor CoverFernando Heinz11RitualRitual CoverRaulo Caceres12WrapWraparound CoverRafa Ortiz13MMMegafauna Mayhem Wraparound CoverFernando Heinz14TBTerror Birds Wraparound CoverFernando Heinz15RIRed Crossed Order Incentive CoverFernando Heinz16DlxSaber Tooth Deluxe Collectors Box Set CoverFernando Heinz17RESchool Days Cover, Limited to 350?4RECalgary Art Deco Cover, Limited to 350Michael DiPascale2REChicago Exclusive Art Deco Cover, Limited to 350Michael DiPascale3REDenver Comic Con Exclusive Art Deco Cover, Limited to 350Michael DiPascale7REPhoenix Comic Con Exclusive Art Deco Cover, Limited to 350Michael DiPascale5REVIP Pure Art Cover, Limited to 250Juan Jose Ryp6

I think everything starting with "List of covers..." should be removed from the comic synopsis
This is probably an error in the ComicVine API but a String replace on the text shouldn't be too hard

Please Log in or Create an account to join the conversation.

More
5 years 8 months ago #5754 by Luis Ángel
Replied by Luis Ángel on topic ComicVine scraper: List of Covers text
The problem is that YACReader shouldn't try to be smart about how to interpret the data comming from the API. If the JSON field says synopsis then all of it is handled as the synopsis.

So maybe it is better to report this to ComicVine?

Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\

Please Log in or Create an account to join the conversation.

  • sandman4sure
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #5755 by sandman4sure
Replied by sandman4sure on topic ComicVine scraper: List of Covers text
Hmm, I bought the iOS version and the synopsis have a lot of weird text in it. So maybe you can take it up with ComicVine because it is your program?

Don't get me wrong, I like the program and love that it syncs with a backend (that is the reason I use Yacreader over other alternatives) and when it was only the opensource backend I am oke with helping out with these problems, but when you have added a paid iOS counterpart we can expect to report bugs and not have to solve them ourself, right?

Please Log in or Create an account to join the conversation.

More
5 years 8 months ago #5756 by Luis Ángel
Replied by Luis Ángel on topic ComicVine scraper: List of Covers text
Could you send me a link to a comic having these problems in Comic Vine?

Your are a YACReader user but also a Comic Vine user (you need a personal API key to use their service). If the problem is on YACReader's side, then there will be a fix, otherwise there is nothing I can do about it other than hope for a fix on their side.

Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\

Please Log in or Create an account to join the conversation.

  • sandman4sure
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #5757 by sandman4sure
Replied by sandman4sure on topic ComicVine scraper: List of Covers text
comicvine.gamespot.com/comic/4000-721070/

It's about that table.
Not sure how the API gives back the synopsis but in Yacreader it is shown as plain text and that doesn't work with the table

Please Log in or Create an account to join the conversation.

  • sandman4sure
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #5758 by sandman4sure
Replied by sandman4sure on topic ComicVine scraper: List of Covers text
comicvine.gamespot.com/api/issue/4000-721070/?api_key= &format=json

They are sending back the whole table. I think YacReader strips the html tags

Please Log in or Create an account to join the conversation.

  • sandman4sure
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #5759 by sandman4sure
Replied by sandman4sure on topic ComicVine scraper: List of Covers text
Sorry for the multiple posts.
Because YACReader strips all the html tags words also get concatenated.
Code:
SERIES PREMIERE“TOTAL ECLIPSE OF THE HEART,” Part OneNo matter how...

See there is no space between One and No

You can probably use \n here, right?

Please Log in or Create an account to join the conversation.

More
5 years 8 months ago #5760 by Luis Ángel
Replied by Luis Ángel on topic ComicVine scraper: List of Covers text
Yeah, looks like the problem is that they use html in that field but also it can be just text (or it used to be). I will try to see if there is a better key I can use, if not then better html handling is needed.

Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
The following user(s) said Thank You: Drybonz, sandman4sure

Please Log in or Create an account to join the conversation.

Moderators: Luis Ángel
Powered by Kunena Forum

Thanks for downloading YACReader!

Your download is starting.

YACReader for iOS and Android

Connect to YACReaderLibrary to browse, read remotely and import comics. Your reading progress is synchronized across devices.

Download on the App Store Get it on Google Play Available at Amazon Appstore

Discover all the features on the iOS and Android pages, and learn how to use them in the iOS and Android user guides.

Support YACReader

YACReader for desktop and server is free to use, but it is not free to develop: maintaining this website, developer programs, code signing certificates, test devices and, of course, all the time it takes. Less than 0.01% of downloads end in a donation, so any amount counts.

By supporting the project you help keep it regularly updated and, most importantly, alive. Thanks!