For JD Plus members, after evaluating a product, JD will reward Jing beans, but at least 40 words are needed. Therefore, it is necessary to automate the generation of comments.
This project uses the FlagAI model from Zhiyuan to generate a positive or negative evaluation using the product title in the link.
Download the GLM-large-ch model files to "./checkpoints/GLM-large-ch/".
Download the AltDiffusion-m9 model files to "./checkpoints/AltDiffusion-m9/".
-
Selenium login to the JD account.
-
Jump to the page to be evaluated.
-
Get the product title.
-
Generate evaluation text and images using FlagAI.
-
4.1 Generate evaluation text using the GLM-large-ch model.
-
4.2 Generate images using the AltDiffusion-m9 model.(not implemented)
-
-
Submit.
-
Enter the next product and repeat step 2.
pip install flagai
pip install pyppeteer
Double click on run.bat to run.