diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/python_test.py" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/python_test.py" new file mode 100644 index 0000000000000000000000000000000000000000..1948066fda6bac19dce5800e3731c0402ec9dbdf --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/python_test.py" @@ -0,0 +1,11 @@ +#在terminal 那里打入 cd jd_crawler +import sys +print(sys.path) +import os +sys.path.append(os.getcwd()) +from jd_parser.search import parse_jd_item + +with open("test\search.html", "r", encoding="utf_8") as f: + html = f.read() + result = parse_jd_item(html) + print(result) \ No newline at end of file diff --git "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/search.html" "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/search.html" new file mode 100644 index 0000000000000000000000000000000000000000..219cc7085db38b4da894d9cc4abbb06c3112f92a --- /dev/null +++ "b/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/1\347\217\255/1\347\217\255_\345\230\230\345\230\230/1\347\217\255_\345\230\230\345\230\230_\347\254\254\345\215\201\345\221\250_\344\275\234\344\270\232/1\347\217\255_\345\230\230\345\230\230_\347\254\254\344\270\200\350\212\202\350\257\276_\344\275\234\344\270\232/search.html" @@ -0,0 +1,6653 @@ + +
+ + + + + + + + + + + + + + + + + + +