Use GitHub Actions to automatically crawl word collections every day.
The crawled data is stored in the
datafolder in thejsonformat.
Welcome to submit bugs and improvement suggestions through issues!
- visit Baidu Fanyi,right click and select
Inspectto open the devtools console - select the
Networkcolumn - select the
Fetch/XHRfilter choice - enter
transapiin the filter input box - enter any content in the web page input box to trigger the translation HTTP request
- click the HTTP request which begins with
v2transapiin the devtools console - Then scroll down to find
Request Headers > Cookieitem,right click and selectCopy
- enter the Settings page
- select
Secrets > Actionsin the sidebar - click the "New repository secret" button
- Name column: input BAIDU_COOKIE
- Secret column: paste the cookie copied from the devtools console (paste directly without single quotation marks)
export BAIDU_COOKIE='your cookie' # notice that there are single quotes
npm install
npm run dev

