arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WP Extractor | Simple WordPress Posts & Pages Extractor in Python
#6
This looks like an interesting tool. I'm not familiar with python, but I can see it's value. Unfortunately I wasn't able to get it working (remember, python newbie).

First, I installed python.

Quote:~$ sudo apt-get install python


no problems there. Then I try to run main.py as recommended in your readme.

Quote:~$ python main.py -u https://url.url
Traceback (most recent call last):
  File "main.py", line 5, in <module>
    import requests
ImportError: No module named requests

Okay so something is missing. I do some googling and find first I need to install pip.
Quote:~$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.1).

that one looks good. So lets try to install request...

Quote:~$ sudo pip3 install requests
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.22.0)

So I have requests installed but for some reason my python installation isn't recognizing it. I'm thinking maybe the problem is due to multiple versions of python installed but I'm not sure which one to keep or if there's a safe way to remove one without breaking the other. Perhaps it'd be simpler to reinstall and start from scratch? (I'm working on a dev server so no worries about losing anything).



Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
5,320
11-30-2020, 03:51 AM
Last Post: Sn1F3rt
8,718
05-01-2020, 01:16 PM
Last Post: curious_dg

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting