-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
1,810 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.idea | ||
.vscode | ||
|
||
config_test.json | ||
*~ | ||
*.bak | ||
*.dll | ||
*.dylib | ||
*.exe | ||
*.exe~ | ||
*.out | ||
*.so | ||
*.swp | ||
*.tmp | ||
*.test | ||
*.un~ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"login": "08331111", | ||
"password": "123456", | ||
"message_id": 123456, | ||
"region_id": 76000001000, | ||
"school_id": 760215 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// dnevnik76-api project doc.go | ||
|
||
/* | ||
dnevnik76-api document | ||
*/ | ||
package dnevnik76 | ||
|
||
/* Сообщения | ||
URI: /messages/input/ | ||
Страницы | ||
CSS Selector: #content > div.pager > span.page | ||
Имеет тэг a | ||
Если класс page_next - следующая страница | ||
Флаг счётчика страниц: #content > div.pager > span.page_remark Text() | ||
Перейти на страницу | ||
URI: /messages/input/?page=2 | ||
Количество на страницу: в cookie items_perpage=[10,20,30,50] | ||
Список сообщений | ||
#content > form > table.list > tbody > tr | ||
Поля: Тема, От кого, Дата сообщения | ||
Пример сообщения | ||
<tr class="odd"> | ||
<td><input type="checkbox" onclick="unselectOneCB(this, 'all_message_mark');" class="message_mark" name="marks" value="123456"/></td> | ||
<td><a href="/messages/input/123456/" class="unread">Изменение режима работы школы</a></td> | ||
<td>Фамилия Имя Отчество (Школа № 83, Ярославль г)</td> | ||
<td>17 декабря 2018 г. 18:09</td> | ||
</tr> | ||
Просмотр сообщения | ||
Селектор: #msgview > div.msg-text | ||
*/ | ||
|
||
/* Marks | ||
URI: /marks/current/ | ||
Получение для конкретной недели | ||
URI: /marks/current/month2/note/ | ||
Странное поведение! Возможно получить /marks/current/month9/note/ в текущем году за сентябрь 2018 | ||
Получается что под current имеется в виду учебный год. | ||
note - ученический дневник | ||
list - список | ||
date - по датам | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module github.com/bvp/dnevnik76-api | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/PuerkitoBio/goquery v1.5.0 | ||
github.com/bvp/russiantime v0.1.0 | ||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
github.com/PuerkitoBio/goquery v1.5.0 h1:uGvmFXOA73IKluu/F84Xd1tt/z07GYm8X49XKHP7EJk= | ||
github.com/PuerkitoBio/goquery v1.5.0/go.mod h1:qD2PgZ9lccMbQlc7eEOjaeRlFQON7xY8kdmcsrnKqMg= | ||
github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o= | ||
github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= | ||
github.com/bvp/russiantime v0.1.0 h1:oXpuB2ooSlexQGJ+Vp0ydjQ2IPgiuqpVwxz3vBVclm0= | ||
github.com/bvp/russiantime v0.1.0/go.mod h1:jALOcp8csKwzExdl0Yn4OagrU4PZ1YqJlJIayioeyCE= | ||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= | ||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= |
Oops, something went wrong.