You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WIP scraping library for Polish e-register [mobiDziennik](https://mobidziennik.pl) made in Go
3
-
If you want to see example usage if this library, check out my scuffed desktop client, [mobiNG](https://github.com/dark-steveneq/mobing)
3
+
4
+
# Examples
5
+
Check out [examples/](https://github.com/dark-steveneq/blob/main/examples/) folder for individual examples, however if you want to see reference implementation, check out my abomination of a desktop app - [mobiNG](https://github.com/dark-steveneq/mobing) (hehe funny name).
6
+
7
+
# Development
8
+
For developing MobiAPI you'll first of all need access to mobiDziennik, a web browser and a basic understanding of Go and probably how various web technologies work and a proxy for intercepting network trafic. I can recommend [ZAP](https://zaproxy.org) since it's what I've been using but it's cross-platform and open source but you can use anything. `MobiAPI` type already has a function for connecting to a proxy server you can use.
Copy file name to clipboardexpand all lines: message.go
+53-8
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,13 @@ import (
8
8
"github.com/PuerkitoBio/goquery"
9
9
)
10
10
11
+
const (
12
+
MessageSent=1
13
+
MessageReceived=2
14
+
)
15
+
11
16
typeMessageInfostruct {
12
-
Kindstring
17
+
Kindint
13
18
Titlestring
14
19
Authorstring
15
20
IDint
@@ -24,7 +29,7 @@ type MessageContent struct {
24
29
}
25
30
26
31
// Scrapes and returns message IDs and titles from first or every subsequent page in the form of MessageInfo. Use GetMessageContent() with MessageInfo to read it.
// Scrapes and returns message IDs and titles from first or every subsequent page in the form of MessageInfo. Use GetMessageContent() with MessageInfo to read it.
0 commit comments