deloverov / gumtree2ifttt

IFTTT notifications about new Gumtree ads
MIT License
0 stars 0 forks source link

Master_file? #1

Open aceycv8 opened 4 years ago

aceycv8 commented 4 years ago

Hi,

i'm setting up your script however i don't seem to be getting any results? when i first ran the script it said it was missing master_file.text so i created a blank file and named it that - the script now runs but no output or results. In the masterfile.text i now get [] and that's it are you able to assist?

thank you

deloverov commented 4 years ago

Hi, would you send me the link you are trying to parse?

On Tue, May 5, 2020, 19:04 aceycv8 notifications@github.com wrote:

Hi,

i'm setting up your script however i don't seem to be getting any results? when i first ran the script it said it was missing master_file.text so i created a blank file and named it that - the script now runs but no output or results. In the masterfile.text i now get [] and that's it are you able to assist?

thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deloverov/gumtree2ifttt/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAR4CJUSLT2TYEBPYYXWH3RP7JCHANCNFSM4MZMXQXA .

aceycv8 commented 4 years ago

Hi Deloverov -

Thank you for the quick reply.

pageURLs = ['https://www.gumtree.com.au/s-wa/3d+printer/k0l3008845', 'https://www.gumtree.com.au/s-wa/scott+bonnar/k0c20068l3008845'] # URLs to scrape

aceycv8 commented 4 years ago

I ended out sussing out the issue - it was this part of the code:

post_dict['distance'] = node.find('div', attrs = {'class': 'user-ad-row__location'}).contents[2].get_text() if len(post_dict['distance']) == 1: continue

because your search results have a distance on them and mine don't it was just bypassing everything.

deloverov commented 4 years ago

Yeah, that's right. I sent you an email about that yesterday and upgraded the script on the github. Sorry if the email lost somewhere, maybe in spam folder. Anyway, good for you!

On Wed, May 6, 2020, 11:19 aceycv8 notifications@github.com wrote:

I ended out sussing out the issue - it was this part of the code:

post_dict['distance'] = node.find('div', attrs = {'class': 'user-ad-row__location'}).contents[2].get_text() if len(post_dict['distance']) == 1: continue

because your search results have a distance on them and mine don't it was just bypassing everything.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/deloverov/gumtree2ifttt/issues/1#issuecomment-624395118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAR4CM6TU6OIZCCS54IEXDRQC3KFANCNFSM4MZMXQXA .

aceycv8 commented 4 years ago

oh really nothings showed up - but thank you i appreciate it - very cool script! thank you

deloverov commented 4 years ago

And thank you for testing and feedback. I appreciate it.

On Wed, May 6, 2020, 11:29 aceycv8 notifications@github.com wrote:

oh really nothings showed up - but thank you i appreciate it - very cool script! thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/deloverov/gumtree2ifttt/issues/1#issuecomment-624397551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAR4CPFP5DP5GEAOOOOKHDRQC4RHANCNFSM4MZMXQXA .