Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-02-09 23:23:05

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Craigslist Programming[Help]

Ooookie. So i am looking to make a program in c# that retrieves a craigslist page i.e. This I want to check the price of cars and then check the make and model. I want to get each individual link on the page shown and go through the information on the page. The part i am struggling with is getting each individual url for those pages, if anyone has any ideas that may help i would love to hear it!


If you would like me to make a bot for you, go here.

Offline

#2 2016-02-09 23:55:33

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Craigslist Programming[Help]

did you try splitting by "<a"
I mean, you should be using some RFC-compliant lib, but quick-and-dirty I just split by <a and then take the next "href"

or did you already know that

Offline

#3 2016-02-09 23:58:50

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: Craigslist Programming[Help]

hummerz5 wrote:

did you try splitting by "<a"
I mean, you should be using some RFC-compliant lib, but quick-and-dirty I just split by <a and then take the next "href"

or did you already know that

I know how to split, the webpage i download is this: Pastebin
The part that contains the url is this i believe(near the end)

  <a class="viewpostinglink" href="{PostingURL}" target="_blank">view posting</a>

So it's not an actual url... that's what i believe. I am not very good with html so it's entirely possible i am missing something very obvious


If you would like me to make a bot for you, go here.

Offline

#4 2016-02-10 00:03:18, last edited by XxAtillaxX (2016-02-10 00:22:48)

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: Craigslist Programming[Help]

I made an application that finds and stores the price, the subject and the description.
You would have to do more advanced stuff to categorise the name, make and model.

EDIT: Made it a bit more readable, and added the URL to the listing.

Source

signature.png
*u stinky*

Offline

Wooted by: (2)

#5 2016-02-10 00:10:40

Kaslai
Official Caroler
From: SEAͩT̓͑TLͯͥͧͪ̽ͧE͑̚
Joined: 2015-02-17
Posts: 787

Re: Craigslist Programming[Help]

Well aren't you an overachiever, Atilla? Most people I know would expect to be paid for that much custom code.

Offline

#6 2016-02-10 00:19:44

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Craigslist Programming[Help]

^With some quality googling in the middle.

jaba, you must be esteemed. check out all the people with questions who don't get answers

Offline

hummerz51455059984581714

Board footer

Powered by FluxBB

[ Started around 1735256528.5057 - Generated in 0.062 seconds, 12 queries executed - Memory usage: 1.51 MiB (Peak: 1.68 MiB) ]