facundoolano / google-play-scraper

Node.js scraper to get data from Google Play
MIT License
2.34k stars 633 forks source link

Add preregister field to detail and list #210

Open facundoolano opened 6 years ago

facundoolano commented 6 years ago

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.

jbigman commented 1 year ago

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 commented 1 year ago

Fixed in #646