Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
EduSpider
Commits
f8c84944
Commit
f8c84944
authored
Jun 08, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增测验抓取
parent
20c02f2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
325 additions
and
22 deletions
+325
-22
.gitignore
.gitignore
+1
-0
RB_Stu_Comment.cs
EduSpider.Model/Entity/RB_Stu_Comment.cs
+2
-2
RB_Stu_HomeWork.cs
EduSpider.Model/Entity/RB_Stu_HomeWork.cs
+1
-1
ExamWorkResult.cs
EduSpider.Model/Extend/ExamWorkResult.cs
+1
-1
CourseQuery.cs
EduSpider.Model/Query/CourseQuery.cs
+6
-4
StuHomeWorkRepository.cs
EduSpider.Repository/StuHomeWorkRepository.cs
+1
-1
HttpHelper.cs
EduSpider.Utility/HttpHelper.cs
+2
-1
EduSpider.csproj
EduSpider/EduSpider.csproj
+0
-10
ClassInFlow.cs
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
+7
-2
QuestionManager.cs
EduSpider/Spiders/ClassInRule/QuestionManager.cs
+304
-0
No files found.
.gitignore
View file @
f8c84944
...
...
@@ -3,3 +3,4 @@ obj/
.vs/
EduSpider.WebApi/EduSpider.WebApi.csproj.user
EduSpider.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user
EduSpider/EduSpider.csproj.user
EduSpider.Model/Entity/RB_Stu_Comment.cs
View file @
f8c84944
...
...
@@ -18,12 +18,12 @@ namespace EduSpider.Model.Entity
/// <summary>
/// 开始作业编号
/// </summary>
public
int
StartHomeWorkId
{
get
;
set
;
}
public
Int64
StartHomeWorkId
{
get
;
set
;
}
/// <summary>
/// 家庭作业编号
/// </summary>
public
int
HomeWorkId
{
get
;
set
;
}
public
Int64
HomeWorkId
{
get
;
set
;
}
/// <summary>
/// 学员登录编号
...
...
EduSpider.Model/Entity/RB_Stu_HomeWork.cs
View file @
f8c84944
...
...
@@ -13,7 +13,7 @@ namespace EduSpider.Model.Entity
/// <summary>
/// 学生家庭作业主键编号
/// </summary>
public
int
stu_homework_id
{
get
;
set
;
}
public
Int64
stu_homework_id
{
get
;
set
;
}
/// <summary>
/// admire
...
...
EduSpider.Model/Extend/ExamWorkResult.cs
View file @
f8c84944
...
...
@@ -19,7 +19,7 @@ namespace EduSpider.Model.Extend
/// <summary>
/// 作业编号
/// </summary>
public
int
Stu_HomeWork_Id
{
get
;
set
;
}
public
Int64
Stu_HomeWork_Id
{
get
;
set
;
}
/// <summary>
/// 创建时间
...
...
EduSpider.Model/Query/CourseQuery.cs
View file @
f8c84944
namespace
EduSpider.Model.Query
using
System
;
namespace
EduSpider.Model.Query
{
/// <summary>
/// 课程查询实体类
...
...
@@ -43,17 +45,17 @@
/// <summary>
/// 作业编号
/// </summary>
public
int
HomeWorkId
{
get
;
set
;
}
public
Int64
HomeWorkId
{
get
;
set
;
}
/// <summary>
/// 开始作业编号
/// </summary>
public
int
StartHomeWorkId
{
get
;
set
;
}
public
Int64
StartHomeWorkId
{
get
;
set
;
}
/// <summary>
/// 结束作业编号
/// </summary>
public
int
EndHomeWorkId
{
get
;
set
;
}
public
Int64
EndHomeWorkId
{
get
;
set
;
}
/// <summary>
/// 创建类型(1-系统创建,2-老师创建)
...
...
EduSpider.Repository/StuHomeWorkRepository.cs
View file @
f8c84944
...
...
@@ -437,7 +437,7 @@ WHERE 1=1
/// <param name="CourseId"></param>
/// <param name="Stu_HomeWork_Id"></param>
/// <returns></returns>
private
static
RB_Stu_Comment
GetSystemCreateComment
(
List
<
RB_Stu_Comment
>
commentList
,
int
CourseId
,
int
Stu_HomeWork_Id
)
private
static
RB_Stu_Comment
GetSystemCreateComment
(
List
<
RB_Stu_Comment
>
commentList
,
int
CourseId
,
Int64
Stu_HomeWork_Id
)
{
var
tempModel
=
commentList
.
Where
(
qitem
=>
qitem
.
CourseId
==
CourseId
&&
qitem
.
HomeWorkId
==
Stu_HomeWork_Id
&&
qitem
.
CreateType
==
1
).
FirstOrDefault
();
return
tempModel
;
...
...
EduSpider.Utility/HttpHelper.cs
View file @
f8c84944
...
...
@@ -25,7 +25,8 @@ namespace EduSpider.Utility
UseCookies
=
true
,
CookieContainer
=
CreateCookie
(
cookie
),
AutomaticDecompression
=
DecompressionMethods
.
GZip
,
ClientCertificateOptions
=
ClientCertificateOption
.
Automatic
ClientCertificateOptions
=
ClientCertificateOption
.
Automatic
,
SslProtocols
=
System
.
Security
.
Authentication
.
SslProtocols
.
Tls
};
var
http
=
new
HttpClient
(
handler
);
GenerateHttpHeader
(
ref
http
);
...
...
EduSpider/EduSpider.csproj
View file @
f8c84944
...
...
@@ -14,11 +14,6 @@
<ItemGroup>
<Compile Remove="Spiders\CityService.cs" />
<Compile Remove="Spiders\EasterLineRule\AccountManagerHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\CookiesHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\PassengerHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\QueryFlightHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\TicketOrderHelper.cs" />
</ItemGroup>
<ItemGroup>
...
...
@@ -30,11 +25,6 @@
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Spiders\EasterLineRule\AccountManagerHelper.cs" />
<Content Include="Spiders\EasterLineRule\CookiesHelper.cs" />
<Content Include="Spiders\EasterLineRule\PassengerHelper.cs" />
<Content Include="Spiders\EasterLineRule\QueryFlightHelper.cs" />
<Content Include="Spiders\EasterLineRule\TicketOrderHelper.cs" />
</ItemGroup>
...
...
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
View file @
f8c84944
...
...
@@ -45,8 +45,13 @@ namespace TicketSpider.Spiders.ClassInRule
HomeWorkManager
.
RunHomeWork
(
loginCookies
);
Console
.
WriteLine
(
"作业信息更新结束"
);
VTX
.
FW
.
Helper
.
LogHelper
.
WriteInfo
(
"StartAsync"
,
"作业信息更新结束"
);
Console
.
WriteLine
(
"开始获取测验信息"
);
VTX
.
FW
.
Helper
.
LogHelper
.
WriteInfo
(
"StartAsync"
,
"开始测验信息"
);
QuestionManager
.
RunHomeWork
(
loginCookies
);
Console
.
WriteLine
(
"测验信息更新结束"
);
VTX
.
FW
.
Helper
.
LogHelper
.
WriteInfo
(
"StartAsync"
,
"测验信息更新结束"
);
}
...
...
EduSpider/Spiders/ClassInRule/QuestionManager.cs
0 → 100644
View file @
f8c84944
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment