I am trying to get a list of all wikipedia title without redirects.
They say that they have about 6,410k articles. I tried to get a list though https://dumps.wikimedia.org/enwiki/latest/ and the file enwiki-latest-all-titles-in-ns0.gz. But this has more than 16 million. So it includes titles with redirects
As suggested by an answer, I tried using quarry. I ran this simple query from the database enwiki_p:
select page_title from page where page_is_redirect = 0;
Now, the challenge with this is all titles which have more than one word are automatically considered redirects because this database removes all spaces in page title (see sample of database)
How do I know which page is an actual redirect or just considered on due to spaces being removed.