scrapy-random-useragent icon indicating copy to clipboard operation
scrapy-random-useragent copied to clipboard

How to list the user agents in the file

Open landownerhalo opened this issue 6 years ago • 3 comments

Hi, Can you show use how we add the user agents to the file? Is it gonna be comma-delimited or with '\n' Thanks

landownerhalo avatar Apr 06 '18 13:04 landownerhalo

Probably so, you can take a look at this line https://github.com/cnu/scrapy-random-useragent/blob/0f49a66ec800733ea001e3140ce6a8f86e10ed9c/random_useragent.py#L37

tienduccao avatar Sep 03 '18 13:09 tienduccao

the user agent file needs to be separated with '\n'. The line of code @tienduccao posted will read every line and use the .strip() method to remove all kind of whitespaces.

BreakBB avatar Nov 28 '18 10:11 BreakBB

Que tal seria de gran ayuda q un ejemplo de como construir tu lista de agentes es primera ves q lo hago asi q no tengo idea de como empezar para realizarla.

deepcraven avatar Apr 05 '19 13:04 deepcraven