Coder Social home page Coder Social logo

bigfoott / scrapedduck Goto Github PK

View Code? Open in Web Editor NEW
33.0 2.0 8.0 106 KB

ScrapedDuck routinely scrapes LeekDuck.com and pushes the found data to a branch on this repository, for use by other external applications.

License: GNU Affero General Public License v3.0

JavaScript 100.00%
pokemon-go pokemongo pokemongo-api leekduck

scrapedduck's Introduction

Hello! 👋

I'm Anthony, a software dev from New Jersey with a Bachelor's in Computer Science and an interest in web dev and virtual reality.

I'm currently focused on a few projects!

View my programming portfolio or check out some of the 3D printed art I've made (which is also available on Thingiverse)!

scrapedduck's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scrapedduck's Issues

Duplicate pokemon encounters in research have same task instead of different

This occurs with Eevee and Onix currently in March's research.
Eevee is a reward for "Evolve a Pokémon" and "Catch 5 Pokémon", but the json returned by ScrapedDuck for research shows two Eevee rewards for just "Evolve a Pokémon" and no mention of "Catch 5 Pokémon".

    {
        "text": "Evolve a Pokémon",
        "type": "power",
        "rewards": [
            {
                "name": "Eevee",
                "image": "https://undefined",
                "canBeShiny": true,
                "combatPower": {
                    "min": 424,
                    "max": 459
                }
            },
            {
                "name": "Eevee",
                "image": "https://undefined",
                "canBeShiny": true,
                "combatPower": {
                    "min": 424,
                    "max": 459
                }
            }
        ]
    },

The same happens for Onix with "Battle in GO Battle League" and "Make 3 Great Throws in a row".

https://leekduck.com/research/

https://raw.githubusercontent.com/bigfoott/ScrapedDuck/data/research.json

<br> shows up in Community day disclaimer

A recent change to the format of the community day pages added HTML line breaks here.

They probably should be stripped by ScrapedDuck as the data already includes \n in it.

"bonusDisclaimers": [
  "* While most bonuses are only active during the three hours of the event, these bonuses will be active from 2:00 p.m. to 10:00 p.m. local time.<br>\n** The three-hour Incense bonus excludes Daily Adventure Incense.<br>\n*** The three-hour lure bonus excludes Golden Lure Modules."
],

Perhaps each disclaimer should also be their own entry in the bonsuDisclaimers array, rather than having \n.

Times are wrong?

It seems to not add the events (Community day) in Local Time to my calendar. The Community day is 2 PM - 5 PM local time, but it adds the April community day to 8-11 PM into my google calendar

Some of the start/end dates came up as null

Hello,

I am noticing some missing start/end dates. Example:

[
   {
      "eventID":"season-12-master-league_evolution-cup",
      "name":"Master League and Evolution Cup | Season of Light",
      "eventType":"go-battle-league",
      "heading":"GO Battle League",
      "link":"https://leekduck.com/events/season-12-master-league_evolution-cup/",
      "image":"https://leekduck.com/assets/img/events/gobattleleague-master-key.jpg",
      "start":null,
      "end":"2022-10-13T20:00:00.000Z",
      "extraData":null
   },
   {
      "eventID":"mega-manectric-in-mega-raids-october-2022",
      "name":"Mega Manectric in Mega Raids",
      "eventType":"raid-battles",
      "heading":"Raid Battles",
      "link":"https://leekduck.com/events/mega-manectric-in-mega-raids-october-2022/",
      "image":"https://leekduck.com/assets/img/events/mega-default.jpg",
      "start":null,
      "end":"2022-10-20T10:00:00.000",
      "extraData":{
         "raidbattles":{
            "bosses":[
               {
                  "name":"Mega Manectric",
                  "image":"https://leekduck.com/assets/img/pokemon_icons/pokemon_icon_310_51.png",
                  "canBeShiny":true
               }
            ],
            "shinies":[
               
            ]
         }
      }
   },
   {
      "eventID":"shiny-corsola-okinawa-shirt-pikachu",
      "name":"Pikachu wearing an Okinawan kariyushi shirt and Shiny Corsola",
      "eventType":"location-specific",
      "heading":"Location-specific",
      "link":"https://leekduck.com/events/shiny-corsola-okinawa-shirt-pikachu/",
      "image":"https://leekduck.com/assets/img/events/pikachu-okinawa.jpg",
      "start":null,
      "end":null,
      "extraData":null
   }
]

Community Day extraData: bonuses doesn't pull disclaimer

The bonuses data for the Community Day event show the asterisk for the disclaimer at the bottom of the bonuses, but the extraData doesn't pull the disclaimer itself
Disclaimer:

  • While most bonuses are only active during the three hours of the event, these bonuses will be active from 11:00 a.m. to 7:00 p.m. local time.

Side note: I'm working on an iOS shortcut to quick reference some of this data. Leek Duck pointed me to this repo. I'd love to share progress with you. Let me know how to best contact you.

Add last updated metadata

Scrape pages for the last updated date and add that to the end point. this could be helpful to allow me to notify users of outdated information or cache information rather than needing to make an API request

Events can have multiple event types

The World of Wonders: Taken Over event is both an Event and Team Go Rocket. ScrapedDuck only notes the first of these two.

image

https://leekduck.com/events/world-of-wonders-taken-over/

   {
        "eventID": "world-of-wonders-taken-over",
        "name": "World of Wonders: Taken Over",
        "eventType": "event",
        "heading": "Event",
        "link": "https://leekduck.com/events/world-of-wonders-taken-over/",
        "image": "https://leekduck.com/assets/img/events/team-go-rocket-giovanni-shadow-groudon.jpg",
        "start": "2024-03-27T00:00:00.000",
        "end": "2024-03-31T23:59:00.000",
        "extraData": null
    },

All images for research rewards are undefined

[
    {
        "text": "Catch 7 Pokémon",
        "type": "catch",
        "rewards": [
            {
                "name": "Magikarp",
                "image": "https://undefined",
                "canBeShiny": true,
                "combatPower": {
                    "min": 99,
                    "max": 117
                }
            }
        ]
    }
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.