Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Miscellaneous Python Scripts, (2024/11/10) Equip and percentile parser

 
post Aug 13 2021, 00:48
Post #1
프레이



Only one group, up to homomorphism
*****
Group: Gold Star Club
Posts: 701
Joined: 21-October 17
Level 500 (Ponyslayer)


Random scripts / links that may be useful to someone.

---

Equip parser
  • Live endpoint: [hvdata.gisadan.dev] https://hvdata.gisadan.dev/equip?eid=355798...;is_isekai=true
  • Most of the logic for scraping the original equip page is in this [github.com] fetch_equip.py script. Most of the percentile calculations are in this [github.com] infer_equip_stats.py script.
  • Example query:
    CODE

    $ curl 'https://hvdata.gisadan.dev/equip?eid=355798&key=7164315f39&is_isekai=true' | jq
    {
      "name": "Magnificent Phase Gloves of Heimdall",
      "alt_name": null,
      "category": "Cloth Armor",
      "level": 200,
      "weapon_damage": null,
      "stats": {
        "Spell Damage": {
          "Holy": {
            "value": 27.85,
            "base": 13.92
          }
        },
        [...]
      },
      "upgrades": {},
      "enchants": {},
      "owner": {
        "name": "Pickled_Cow",
        "uid": 7873
      },
      "potency": {
        "tier": 0,
        "current_xp": 0,
        "max_xp": 330
      },
      "calculations": {
        "percentiles": {
          "Spell Damage": {
            "Holy": 0.8301886792452833
          },
        [...]
        }
      }
    }

Database / API for auction and lottery dataMM stuff---

Changelog
  • 2024-11-10 - equip parser
  • 2023-01-10 - auction and lottery data


This post has been edited by 프레이: Nov 10 2024, 07:26
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2021, 06:29
Post #2
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,632
Joined: 3-January 21
Level 500 (Ponyslayer)


Thanks Literal Genie for making the module!

Also, a notice for any advanced player who wants to utilize the module. According to the rules:

QUOTE
Any automation or semi-automation of gameplay beyond a single "action". - Anything that automates actions without direct player input.


This means you cannot use the module to automate your process until you have explicitly granted permission from Tenboro.

Rules are what separates us from animals.

This post has been edited by OnceForAll: Aug 13 2021, 06:30
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2021, 08:52
Post #3
프레이



Only one group, up to homomorphism
*****
Group: Gold Star Club
Posts: 701
Joined: 21-October 17
Level 500 (Ponyslayer)


QUOTE(OnceForAll @ Aug 13 2021, 00:29) *

Also, a notice for any advanced player who wants to utilize the module. According to the rules:
This means you cannot use the module to automate your process until you have explicitly granted permission from Tenboro.

Rules are what separates us from animals.


Pretty much. A mod can correct me if I'm wrong, but attaching multiple items and sending it with the MM script should be okay (it's what HVUT does), but sending multiple mails without user input is probably NOT okay.

This post has been edited by 프레이: Jan 11 2023, 01:41
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2021, 18:54
Post #4
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


My HV knowledge is almost none these days so you will need to an HV mod on the automation bit but I normally play around all the scripts that require explicit credentials.

I had a look at the code and see no credentials issues, these are only sent over to EH and HV pages (as expected). The only detail I found a tad strange is that in [gist.github.com] line 340 you use an f" string instead of a normal string for the URL. I guess this is just an overlook from changing it to a condition for isekai later. Nothing of concern just a small detail in the code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2021, 21:43
Post #5
Noni



Hataraku Noni-sama
***********
Group: Catgirl Camarilla
Posts: 13,362
Joined: 19-February 16
Level 500 (Ponyslayer)


It's okay to automate multiple MM sending, as that won't give you any benefits without user input. Just make sure you don't apply multi-threading.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Aug 13 2021, 22:30
Post #6
Nezu



Rat
********
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12
Level 500 (Ponyslayer)


I've already read through these; they're fine. Basically the same things HVUtils already does (and HVMarket, and a couple auction scripts, and Toolbox, and some other things).

It's not multi-threaded or asynchronous (the sleep call is blocking so it's not compatible with that anyway), and it's even rate-limited to 1 request per second by default.

This post has been edited by Nezu: Aug 13 2021, 22:32
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 11 2023, 01:50
Post #7
프레이



Only one group, up to homomorphism
*****
Group: Gold Star Club
Posts: 701
Joined: 21-October 17
Level 500 (Ponyslayer)


Added API for scraping and querying auction / lottery data.
[gist.github.com] https://gist.github.com/anon962/cea1b8cbe35...c4c416b62129693
Repo link is in a gist because google-bot is watching.

Live demo at [hvdata.gisadan.dev] https://hvdata.gisadan.dev/docs
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 9th June 2025 - 20:56