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/4\347\217\255/4\347\217\255_\346\255\246\346\230\216/4\347\217\255-\346\255\246\346\230\216-\347\254\254\344\271\235\345\221\250-\347\254\2543\350\212\202\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" similarity index 67% rename from "\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\255\246\346\230\216/4\347\217\255-\346\255\246\346\230\216-\347\254\254\344\271\235\345\221\250-\347\254\2543\350\212\202\344\275\234\344\270\232 /search.html" rename to "\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" index 5d450559b6e20ff988665d6db4ef6be6c988f75b..219cc7085db38b4da894d9cc4abbb06c3112f92a 100644 --- "a/\347\254\254\344\272\214\346\234\237\350\256\255\347\273\203\350\220\245/4\347\217\255/4\347\217\255_\346\255\246\346\230\216/4\347\217\255-\346\255\246\346\230\216-\347\254\254\344\271\235\345\221\250-\347\254\2543\350\212\202\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" @@ -1,6615 +1,6653 @@ - -
- - - - - - - - - - - - - - - - - - -