arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WP Extractor | Simple WordPress Posts & Pages Extractor in Python
#7
Try using
python3 main.py -u https://url.url

The tool is based on python3, and I recommend you install requests using pip3, as you installed.
(11-26-2020, 05:18 PM)fitkoh Wrote: 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.



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


Okay so something is missing. I do some googling and find first I need to install pip.

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


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).

(11-26-2020, 12:47 PM)LightDestory Wrote: Nice projects, it is sad when an open source software became an abandonware. You did a very nice job picking up it and reviving it.
I did a very fast read of the code and you seems to be using wp-json stuff, it is a good choice but why don't use the sitemap?

Moreover you could replace the ifs inside the error handling with a swtich, it does the same thing but it is more "appropriate" for that situation.

Noted for next update.
The reason why I didn't use sitemap is sitemap may often missout on posts that are outside the website. This tool aims at everything that is not draft or password from the main content.
And I just started learning Python. This is just a pet project :3
Premium Web Hosting | ShadowCrypt | Manal Shaikh Official Website
If you find my post/thread useful, you're supposed to +rep me. 



Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
5,012
11-30-2020, 03:51 AM
Last Post: Sn1F3rt
8,230
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