add setup.sh

This commit is contained in:
mshe 2026-05-27 11:51:01 +08:00
parent a607545324
commit 40a88408bd
2 changed files with 14 additions and 2 deletions

View File

@ -4,7 +4,9 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="29e8f12f-1d00-4e65-8b7a-d266f481ff29" name="更改" comment="" /> <list default="true" id="29e8f12f-1d00-4e65-8b7a-d266f481ff29" name="更改" comment="">
<change afterPath="$PROJECT_DIR$/setup.sh" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -18,6 +20,9 @@
</list> </list>
</option> </option>
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectColorInfo">{ <component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 5 &quot;associatedIndex&quot;: 5
}</component> }</component>
@ -30,6 +35,7 @@
"Flask 服务器.learn-spider.executor": "Run", "Flask 服务器.learn-spider.executor": "Run",
"Python.china_net.executor": "Run", "Python.china_net.executor": "Run",
"RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "main",
"last_opened_file_path": "/Users/mshe/developer/code/python-workspace/learn-spider/spider", "last_opened_file_path": "/Users/mshe/developer/code/python-workspace/learn-spider/spider",
"node.js.detected.package.eslint": "true", "node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true", "node.js.detected.package.tslint": "true",
@ -111,7 +117,7 @@
<workItem from="1779096652209" duration="2278000" /> <workItem from="1779096652209" duration="2278000" />
<workItem from="1779170746673" duration="525000" /> <workItem from="1779170746673" duration="525000" />
<workItem from="1779673152455" duration="4561000" /> <workItem from="1779673152455" duration="4561000" />
<workItem from="1779779192025" duration="4366000" /> <workItem from="1779779192025" duration="5502000" />
</task> </task>
<servers /> <servers />
</component> </component>

6
setup.sh Normal file
View File

@ -0,0 +1,6 @@
apt install -y python3.12-dev python3.12-venv
python3 -m venv .venv --include-system-site-packages
.venv/bin/python3.12 -m pip install -r requirements.txt
playwright install
playwright install-deps
.venv/bin/python3.12 spider/china_net.py