taskmedia / nuscrape Goto Github PK
View Code? Open in Web Editor NEWProject is now archived - feature now available directly in nuLiga
License: MIT License
Project is now archived - feature now available directly in nuLiga
License: MIT License
It seems that not all logs are converted in JSON as defined here:
nuScrape/cmd/nuScrape/nuScrape.go
Line 10 in 9c8eb27
Currently this only are logs from gin-gonic
🔽 low priority
sometimes the spielplan gets approved which could be added.
also sometimes a additional note will be at the last column.
spielplan approved should be one after the meeting report with id 9 (meeting report does not use ids).
the note will follow after spielplan approved and has id 10.
<td nowrap="nowrap">
<img alt="Spielbericht genehmigt" border="0" title="Spielbericht genehmigt" src="/WebObjects/nuLiga.woa/Frameworks/nuLigaFramework.framework/WebServerResources/img/icons/check.gif" width="13" height="11">
</td>
<td nowrap="nowrap">
<img border="0" alt="HT Halberstadt hat telefonisch abgesagt. SL MB" title="HT Halberstadt hat telefonisch abgesagt. SL MB" src="/WebObjects/nuLiga.woa/Frameworks/nuLigaFramework.framework/WebServerResources/img/icons/note_14x14.gif" width="14" height="14">
<span></span>
</td>
example at: courtInfo?federation=HVSA&location=19274
In the func parseGermanTime
a static timezone is used. This causes wrong display time in calendar.
nuScrape/pkg/parser/gesamtspielplan.go
Lines 206 to 217 in c1e034a
increase tests to get better code coverage
Add a readme which describes the project
Currently only the Championship is a string element - all others are a own type:
nuScrape/pkg/sport/gesamtspielplan.go
Lines 11 to 20 in a18ff16
This would be great for e.g. GetDescription
:
nuScrape/pkg/sport/gesamtspielplan.go
Lines 42 to 44 in a18ff16
Here only the Championship will be returned as abbreviation.
The URL https://bhv-handball.liga.nu/cgi-bin/WebObjects/nuLigaHBDE.woa/wa/groupPage?championship=AV+2021%2F22&displayDetail=meetings&displayTyp=gesamt&group=281103
is mentioned for many tests - this should be centralized to be changed better.
Maybe it is possible to add a file with static configurations.
Männer
Bezirksklasse
Nord-West
next to http a endpoint for msg queue should be added.
useful links:
remove empty values from JSON object.
e.g.
{
goal: {
home: -1,
guest: -1
},
referee: null
},
add result annotations as const or struct as e.g. relay or class.
This will be parsed here:
nuScrape/pkg/parser/gesamtspielplan.go
Lines 284 to 290 in 4263350
The values are as described here:
Legende
v ... Spiel wurde in/auf genannte/n Halle/Termin verlegt
u ... Spiel wird in/auf noch unbekannte/n Halle/Termin verlegt
h ... Halle wurde geändert
t ... Heimrecht wurde getauscht
NH ... Heimmannschaft nicht angegreten
NG ... Gastmannschaft nicht angetreten
N2 ... Heim- und Gastmannschaft nicht angetreten
WH ... Wertung gegen Heimmannschaft
WG ... Wertung gegen Gastmannschaft
W2 ... Wertung gegen Heim- und Gastmannschaft
U ... Begegnung wurde umgewertet
ZH ... Heimmannschaft zurückgezogen
ZG ... Gastmannschaft zurückgezogen
example in gsp:
{"season": "2021_22", "championship": "AV", "group": "273516"}
example from sourcecode:
<td nowrap="nowrap" alt="Wertung gegen Gastmannschaft" class="center" title="Wertung gegen Gastmannschaft">
WG
</td>
Add a pipeline to build the app and if possible add it as asset to releases
If possible add swagger file or equal to describe the API
The JSON response example does not have the latest implementation displayed.
The match id will always be zero in the JSON response instead of e.g. 27031301
.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Dockerfile
.github/workflows/build.yml
actions/checkout v3
docker/login-action v2.0.0
docker/metadata-action v4.0.1
docker/build-push-action v3.0.0
.github/workflows/codecov.yml
actions/checkout v3
actions/setup-go v3
.github/workflows/labeler.yml
actions/labeler v4
.github/workflows/release-drafter.yml
release-drafter/release-drafter v5
.github/workflows/test.yml
actions/checkout v3
actions/setup-go v3
go.mod
go 1.17
github.com/PuerkitoBio/goquery v1.8.0
github.com/gin-gonic/gin v1.8.1
github.com/gocolly/colly v1.2.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.8.0
github.com/taskmedia/roundrobintournament v1.1.0
k8s/helm/values.yaml
Add a full parsing test (old season) which checks if the generated Gesamtspielplan
struct will be correctly parsed and created.
Add a Dockerfile to containerize the application (automatic upload at build)
depends on #10
The following table was present at 2021_22/SW/273332
:
red: no match id was present
orange: no location id was present
this occured in following log messages:
{
"error":"strconv.Atoi: parsing \"\": invalid syntax",
"level":"warning",
"locationId":"",
"msg":"can not parse location ID",
"time":"2021-11-15T21:23:30+01:00"
}
The error is no problem because no location was given.
But to avoid invalid matches to be added to the DB it is required to check if the ID of the match is 0
.
In this case the match entry should be dropped.
run go scripts as go routine (async) - this may help performance on multi requests?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.