google-play-scraper icon indicating copy to clipboard operation
google-play-scraper copied to clipboard

Add preregister field to detail and list

Open facundoolano opened this issue 7 years ago • 2 comments

Lost in app detail during migration to the new layout. There should be a boolean somewhere in the script tags indicating if the app is pre register.

Also should be identified in list results. Currently the price link has the .non-offer-badge class for preregister apps.

Search "preregister" to find examples.

facundoolano avatar Apr 08 '18 01:04 facundoolano

From my tests, fields in ['ds:5', 1, 2, 18, 0] contains '1' when the app has pre-order status, '2' when install is available.

Published apps (ex: com.xd.TLglobal)

[
     2
],

Pre-registration (ex: com.marmalade.cluedo2)

[
     1
]

Pre-registration and open to early access apps (ex: : com.blizzard.arc or com.ubisoft.rainbowsixmobile.r6.fps.pvp.shooter)

[
     1,
     null,
     "Pre-register for a chance to get early access to this game"
]

MAPPING could be updated with this:

preregister : {
    path: ['ds:5', 1, 2, 18, 0],
    fun: (val) => val === 1
  }, 

PS: When the pre-registration also open acces to early access, path ['ds:5', 1, 2, 18, 0] contains "Pre-register for a chance to get early access to this game"

jbigman avatar Jul 23 '23 17:07 jbigman

Fixed in #646

jbigman avatar Aug 03 '23 13:08 jbigman