新增RSS订阅收集器,支持从多个RSS源获取数据并写入MySQL数据库,同时添加了相关配置文件以支持项目部署和主题设置。
This commit is contained in:
Generated
+15
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PublishConfigData" uploadOnCheckin="ee95b41f-4bcf-4810-b328-4a7a4f66093f" remoteFilesAllowedToDisappearOnAutoupload="false">
|
||||||
|
<serverData>
|
||||||
|
<paths name="gitea">
|
||||||
|
<serverdata>
|
||||||
|
<mappings>
|
||||||
|
<mapping local="$PROJECT_DIR$" web="/" />
|
||||||
|
</mappings>
|
||||||
|
</serverdata>
|
||||||
|
</paths>
|
||||||
|
</serverData>
|
||||||
|
<option name="myUploadOnCheckinName" value="gitea" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+12
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MaterialThemeProjectNewConfig">
|
||||||
|
<option name="metadata">
|
||||||
|
<MTProjectMetadataState>
|
||||||
|
<option name="migrated" value="true" />
|
||||||
|
<option name="pristineConfig" value="false" />
|
||||||
|
<option name="userId" value="-2834c26c:198a1f98ccf:-7ffe" />
|
||||||
|
</MTProjectMetadataState>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="WebServers">
|
||||||
|
<option name="servers">
|
||||||
|
<webServer id="ee95b41f-4bcf-4810-b328-4a7a4f66093f" name="gitea" url="">
|
||||||
|
<fileTransfer accessType="WEBDAV" port="6180">
|
||||||
|
<advancedOptions>
|
||||||
|
<advancedOptions dataProtectionLevel="Private" passiveMode="true" shareSSLContext="true" />
|
||||||
|
</advancedOptions>
|
||||||
|
</fileTransfer>
|
||||||
|
</webServer>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -234,7 +234,7 @@ class NewsAPIClient:
|
|||||||
|
|
||||||
return new_last_update
|
return new_last_update
|
||||||
|
|
||||||
# news_api.py 中的 write_to_database 方法可以保持简洁
|
# rss_subscriptions.py 中的 write_to_database 方法可以保持简洁
|
||||||
def write_to_database(self, df: pd.DataFrame) -> Dict[str, Any]:
|
def write_to_database(self, df: pd.DataFrame) -> Dict[str, Any]:
|
||||||
if df.empty:
|
if df.empty:
|
||||||
self.logger.info("没有新数据需要写入数据库")
|
self.logger.info("没有新数据需要写入数据库")
|
||||||
Reference in New Issue
Block a user